dotfiles/.local/bin/statusbar/sb-powerbutton

14 lines
236 B
Plaintext
Raw Normal View History

2024-04-23 04:34:15 +02:00
#!/bin/sh
# The clickable help menu. Middle click to restart wm.
case $BLOCK_BUTTON in
1) sysact ;;
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
2024-04-23 04:34:15 +02:00
esac;
if [ ! -e ~/.cache/bar_color ]; then
echo " "
else
echo "^C1^ ^d^"
fi