From 7c482256ccb4c9b2cd37190caa6383bb6c12bf11 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Thu, 21 Dec 2023 01:18:48 +0100 Subject: [PATCH] hypr: extend powermenu --- config/hypr/scripts/powermenu.sh | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/config/hypr/scripts/powermenu.sh b/config/hypr/scripts/powermenu.sh index fe73800a..62d58128 100755 --- a/config/hypr/scripts/powermenu.sh +++ b/config/hypr/scripts/powermenu.sh @@ -1,17 +1,19 @@ #!/bin/bash # shamelessly stolen from https://github.com/luispabon/sway-dotfiles -entries="⇠ Logout\n⏾ Suspend\n⭮ Reboot\n⏻ Shutdown" +entries="♲ Reload\n⇠ Logout\n⏾ Suspend\n⭮ Reboot\n⏻ 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 -- 2.51.2