diff options
author | adam <56338480+adastx@users.noreply.github.com> | 2022-11-06 22:37:26 +0100 |
---|---|---|
committer | adam <56338480+adastx@users.noreply.github.com> | 2022-11-06 22:37:26 +0100 |
commit | 6cf5636bfd2f698c3280d4fcde38ee3731f724af (patch) | |
tree | d27b7bbe14e00d7d003e51a6aa32d5fd520f62b0 /.local/bin/dmenu | |
parent | 60f14afda96b5b8edce3067cd35e4a91e85e8780 (diff) |
scripts: cleanup
Diffstat (limited to '.local/bin/dmenu')
-rwxr-xr-x | .local/bin/dmenu/dm-power | 6 |
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";; |