dmenu-powermenu

This commit is contained in:
wt
2024-07-13 19:31:47 +00:00
parent b311afb52f
commit 67cbc237db
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
case "$(echo "Shutdown\nRestart\nLogout\nSuspend\nLock" | dmenu \
-nb "${COLOR_BACKGROUND:-#151515}" \
-nf "${COLOR_DEFAULT:-#aaaaaa}" \
-sf "${COLOR_HIGHLIGHT:-#589cc5}" \
-sb "#1a1a1a" \
-i -p \
"Power:" -l 5)" in
Shutdown) exec systemctl poweroff;;
Restart) exec systemctl reboot;;
Logout) kill -HUP $XDG_SESSION_PID;;
Suspend) exec systemctl suspend;;
Lock) exec systemctl --user start lock.target;;
esac