From 67a5faa42f862cb788ea5fa2c3d2e362c2b9a1a8 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Sun, 10 May 2020 10:28:19 +0200 Subject: [PATCH] Fix powermenu and move it from dmenu to rofi --- .local/bin/scripts/powermenu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/bin/scripts/powermenu b/.local/bin/scripts/powermenu index 126a098..162f603 100755 --- a/.local/bin/scripts/powermenu +++ b/.local/bin/scripts/powermenu @@ -1,11 +1,11 @@ #!/usr/bin/env sh -WHAT="$(printf "Shutdown\nSuspend\nLock\nReboot" | dmenu -i -p 'What do you want?' -h 24)" +WHAT="$(printf "Shutdown\nSuspend\nLock\nReboot" | rofi -dmenu -i -p 'What do you want?' -l 4)" if [ -z "$WHAT" ]; then exit; fi case "$WHAT" in Shutdown) systemctl poweroff;; - Suspend) sh ~/.scripts/lockscreen; systemctl suspend;; - Lock) sh ~/.scripts/lockscreen;; + Suspend) lockscreen; systemctl suspend;; + Lock) lockscreen;; Reboot) systemctl reboot esac