1 2 3 4 5 6 7 8 9 10 11 12
#!/sbin/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 "🌕"