From 48ec52b47674cd8767ebacfb4d0b9b9c846c7446 Mon Sep 17 00:00:00 2001 From: adam <56338480+adastx@users.noreply.github.com> Date: Sat, 5 Nov 2022 18:53:30 +0100 Subject: fixed some bindings, switched from rofi to dmenu --- .local/bin/dmenu/dm-power | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .local/bin/dmenu/dm-power (limited to '.local/bin/dmenu/dm-power') 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 -- cgit v1.2.3-70-g09d2