diff options
Diffstat (limited to 'sysact')
| -rwxr-xr-x | sysact | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -25,12 +25,12 @@ lock(){ case "$(printf "🔒 lock\n🚪 leave $WM\n♻️ renew $WM\n🐻 hibernate\n🔃 reboot\n🖥️shutdown\n💤 sleep\n📺 display off" | dmenu -i -p 'Action: ')" in '🔒 lock') lock ;; -"🚪 leave $WM") kill -TERM "$(wmpid)" ;; -"♻️ renew $WM") kill -HUP "$(wmpid)" ;; -'🐻 hibernate') slock $ctl hibernate -i ;; -'💤 sleep') slock $ctl suspend -i ;; -'🔃 reboot') $ctl reboot -i ;; -'🖥️shutdown') $ctl poweroff -i ;; -'📺 display off') xset dpms force off ;; -*) exit 1 ;; + "🚪 leave $WM") kill -TERM "$(wmpid)" ;; + "♻️ renew $WM") kill -HUP "$(wmpid)" ;; + '🐻 hibernate') slock $ctl hibernate -i ;; + '💤 sleep') slock $ctl suspend -i ;; + '🔃 reboot') $ctl reboot -i ;; + '🖥️shutdown') $ctl poweroff -i ;; + '📺 display off') xset dpms force off ;; + *) exit 1 ;; esac |
