force suspend and hibernate

This commit is contained in:
Luke Smith 2022-05-21 14:40:59 -04:00
parent fc6dc7b761
commit f70612800b
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -17,8 +17,8 @@ case "$(printf "🔒 lock\n🚪 leave $WM\n♻ renew $WM\n🐻 hibernate\n
'🔒 lock') slock ;; '🔒 lock') slock ;;
"🚪 leave $WM") kill -TERM "$(wmpid)" ;; "🚪 leave $WM") kill -TERM "$(wmpid)" ;;
"♻️ renew $WM") kill -HUP "$(wmpid)" ;; "♻️ renew $WM") kill -HUP "$(wmpid)" ;;
'🐻 hibernate') slock $ctl hibernate ;; '🐻 hibernate') slock $ctl hibernate -i ;;
'💤 sleep') slock $ctl suspend ;; '💤 sleep') slock $ctl suspend -i ;;
'🔃 reboot') $ctl reboot -i ;; '🔃 reboot') $ctl reboot -i ;;
'🖥shutdown') $ctl poweroff -i ;; '🖥shutdown') $ctl poweroff -i ;;
'📺 display off') xset dpms force off ;; '📺 display off') xset dpms force off ;;