diff --git a/dwm/bin/dmenu-powermenu b/dwm/bin/dmenu-powermenu new file mode 100755 index 0000000..06f9dc9 --- /dev/null +++ b/dwm/bin/dmenu-powermenu @@ -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