]> Freerunner's - dotfiles.git/commitdiff
hypr: extend powermenu
authorAndre Ramnitz <tux.rising@gmail.com>
Thu, 21 Dec 2023 00:18:48 +0000 (01:18 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 18 Aug 2024 16:18:52 +0000 (18:18 +0200)
config/hypr/scripts/powermenu.sh

index fe73800ae1ef2ea90fa19d00651fc54ba4cb572b..62d581287ee2d5b533e11b1398290a8eec64861b 100755 (executable)
@@ -1,17 +1,19 @@
 #!/bin/bash
 # shamelessly stolen from https://github.com/luispabon/sway-dotfiles
 
-entries="⇠ Logout\n⏾ Suspend\n⭮ Reboot\n⏻ Shutdown"
+entries="â\99² Reload\nâ\87  Logout\nâ\8f¾ Suspend\nâ­® Reboot\nâ\8f» Shutdown"
 
-selected=$(echo -e $entries|wofi --width 250 --height 210 --dmenu --cache-file /dev/null | awk '{print tolower($2)}')
+selected=$(echo -e "$entries"|fuzzel --width 20 --lines 5 --dmenu | awk '{print tolower($2)}')
 
 case $selected in
-  logout)
-    hyprctl dispatch exit;;
-  suspend)
-    exec loginctl suspend;;
-  reboot)
-    exec loginctl reboot;;
-  shutdown)
-    exec loginctl poweroff -i;;
+    reload)
+        waybar_reload.sh &;;
+    logout)
+        hyprctl dispatch exit;;
+    suspend)
+        exec loginctl suspend;;
+    reboot)
+        exec loginctl reboot;;
+    shutdown)
+        exec loginctl poweroff -i;;
 esac