diff options
| author | filip <“filip.rabiega@gmail.com”> | 2026-01-21 18:01:02 +0100 |
|---|---|---|
| committer | filip <“filip.rabiega@gmail.com”> | 2026-01-21 18:01:02 +0100 |
| commit | d127601c83c1a30063b76eb89bf0d9a32ed435b9 (patch) | |
| tree | 939d45697205ecd2f2b7bd972bb9e2787fa5af2f /sysact | |
| parent | 704e1b7c0980fd83e07e6ab9d850c7558306250c (diff) | |
| download | chadscripts-d127601c83c1a30063b76eb89bf0d9a32ed435b9.tar.gz chadscripts-d127601c83c1a30063b76eb89bf0d9a32ed435b9.tar.bz2 chadscripts-d127601c83c1a30063b76eb89bf0d9a32ed435b9.zip | |
rewrite sysact and batterylow
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 |
