From 6cf5636bfd2f698c3280d4fcde38ee3731f724af Mon Sep 17 00:00:00 2001 From: adam <56338480+adastx@users.noreply.github.com> Date: Sun, 6 Nov 2022 22:37:26 +0100 Subject: scripts: cleanup --- .local/bin/dmenu/dm-power | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.local/bin/dmenu/dm-power') 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";; -- cgit v1.2.3-70-g09d2