diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2023-10-06 23:10:55 +0200 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2023-10-06 23:10:55 +0200 |
| commit | cfaef26e8718916adcc68fbfb63b15f2389b2cd2 (patch) | |
| tree | 3989af4514d31d0a5cb89e8b96d51210ad7bf152 /shell-scripts/sysact | |
| parent | 654ec06ab6a885ea851c4cbf68d06a00b41b0e14 (diff) | |
move all the files
Diffstat (limited to 'shell-scripts/sysact')
| -rwxr-xr-x | shell-scripts/sysact | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/shell-scripts/sysact b/shell-scripts/sysact deleted file mode 100755 index 4bb92dc..0000000 --- a/shell-scripts/sysact +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -# A dmenu wrapper script for system functions. -export WM="dwm" -ctl='systemctl' - -wmpid(){ # This function is needed if there are multiple instances of the window manager. - echo "$(pidof dwm)" -} - -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') slock ;; - "🚪 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 |
