Create dmenu-powermenu

This commit is contained in:
Tola authored and GitHub committed 2024-11-06 15:21:00 +07:00
1 parent a66eb8c281
commit c84cf5dd3a
1 file changed
+11
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
case "$(printf "Shutdown\nRestart\nLogout\nSuspend\nLock")" | dmenu \
-i -p \
"Power:" -l 5)" in
Shutdown) exec systemctl poweroff;;
Restart) exec systemctl reboot;;
Logout) killall startdwm.sh;;
Suspend) exec systemctl suspend;;
Lock) exec systemctl --user start lock.target;;
esac