diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2023-08-05 21:58:36 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2023-08-05 21:58:36 +0530 |
| commit | 67e7c9f6fb1fef248c1cfa3558d8e6d009b4852c (patch) | |
| tree | a07effe08c3f66b6fd86d18e448d6a8c85da43cf | |
| parent | 7a806df0fdebdaf79ab0cf58a804a20674ccb13b (diff) | |
add power
| -rw-r--r-- | .config/volumeicon/volumeicon (renamed from volumeicon/volumeicon) | 0 | ||||
| -rwxr-xr-x | .dwm/power.sh | 12 |
2 files changed, 12 insertions, 0 deletions
diff --git a/volumeicon/volumeicon b/.config/volumeicon/volumeicon index 72dddf1..72dddf1 100644 --- a/volumeicon/volumeicon +++ b/.config/volumeicon/volumeicon diff --git a/.dwm/power.sh b/.dwm/power.sh new file mode 100755 index 0000000..e5c5ad2 --- /dev/null +++ b/.dwm/power.sh @@ -0,0 +1,12 @@ +#!/bin/bash +chosen=$(printf " Power Off\n Restart\n Suspend\n Hibernate\n Log Out\n Lock" | rofi -dmenu -i -p "Choice:") + +case "$chosen" in + " Power Off") poweroff ;; + " Restart") reboot ;; + " Suspend") systemctl suspend-then-hibernate ;; + " Hibernate") systemctl hibernate ;; + " Log Out") killall dwm ;; + " Lock") betterlockscreen -l ;; + *) exit 1 ;; +esac |
