summaryrefslogtreecommitdiff
path: root/.local/bin/dmenu/dm-power
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/dmenu/dm-power')
-rwxr-xr-x.local/bin/dmenu/dm-power6
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/dmenu/dm-power b/.local/bin/dmenu/dm-power
index 77bcfd9..fefe30f 100755
--- a/.local/bin/dmenu/dm-power
+++ b/.local/bin/dmenu/dm-power
@@ -1,8 +1,8 @@
#!/bin/sh
-case "$(printf "Shutdown\nRestart\nLogout\nSuspend\nLock" | dmenu \
- -fn 'JetBrainsMono NerdFont:size=11' -i \
- -b -p 'Power:')" in
+DMENU_CMD="dmenu -p 'Power:' -b -i -fn 'JetBrainsMono Nerd Font:size=11'"
+
+case "$(printf "Shutdown\nRestart\nLogout\nSuspend\nLock" | eval "$DMENU_CMD")" in
Shutdown) exec systemctl poweroff;;
Restart) exec systemctl reboot;;
Logout) kill -HUP "$XDG_SESSION_PID";;