summaryrefslogtreecommitdiff
path: root/xidlechk
blob: 980ab021e001a20dc0115672ec10a6509d4b702e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

case $BLOCK_BUTTON in
  1) xidletog ;;
  2) notify-send "XIdleTog module" "\- Shows xidle status.
- Middle click to show this message.
- Right click to toggle xidle" ;;
  3) xidletog ;;
  6) "$TERMINAL" -e "$EDITOR" "$0"
esac

[ -f /tmp/xorg-awake ] && echo "🌑" || echo "🌕"