diff options
author | adam <56338480+adastx@users.noreply.github.com> | 2022-11-05 18:53:30 +0100 |
---|---|---|
committer | adam <56338480+adastx@users.noreply.github.com> | 2022-11-05 18:53:30 +0100 |
commit | 48ec52b47674cd8767ebacfb4d0b9b9c846c7446 (patch) | |
tree | 810c32e69069c7b09faf058c4f1e0818ede5ea7c /.local/bin/dmenu/dm-power | |
parent | 145ab8f0429030edcdc86f48277508720345d167 (diff) |
fixed some bindings, switched from rofi to dmenu
Diffstat (limited to '.local/bin/dmenu/dm-power')
-rwxr-xr-x | .local/bin/dmenu/dm-power | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/dmenu/dm-power b/.local/bin/dmenu/dm-power new file mode 100755 index 0000000..77bcfd9 --- /dev/null +++ b/.local/bin/dmenu/dm-power @@ -0,0 +1,11 @@ +#!/bin/sh + +case "$(printf "Shutdown\nRestart\nLogout\nSuspend\nLock" | dmenu \ + -fn 'JetBrainsMono NerdFont:size=11' -i \ + -b -p 'Power:')" 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 |