dmenu-powermenu
This commit is contained in:
1 parent
b311afb52f
commit
67cbc237db
1 file changed
+16
Executable
+16
@@ -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
|
||||||
Reference in new issue
Block a user