diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-20 21:19:06 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-20 21:19:06 +0900 |
| commit | 9976fcacc348b7ac1f49bcb763e95d630f6572a3 (patch) | |
| tree | b0b7c004d1d8f2ee453572a6a9161f4ab4a660e5 | |
| parent | 8cb761601b50569dc7ff4199ee2e2bd8ec2faef7 (diff) | |
| -rwxr-xr-x | ar/.local/bin/sysact | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ar/.local/bin/sysact b/ar/.local/bin/sysact index 64ef127..c76fa0b 100755 --- a/ar/.local/bin/sysact +++ b/ar/.local/bin/sysact @@ -23,14 +23,14 @@ wmpid() { # This function is needed if there are multiple instances of the windo echo "${tree%%)*}" } -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 +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)" ;; +"♻ renew $WM") kill -HUP "$(wmpid)" ;; '🐻 hibernate') slock $ctl hibernate -i ;; '💤 sleep') slock $ctl suspend -i ;; '🔃 reboot') $ctl reboot -i ;; -'🖥️shutdown') $ctl poweroff -i ;; +'🖥shutdown') $ctl poweroff -i ;; '📺 display off') xset dpms force off ;; *) exit 1 ;; esac |
