From: Andre Ramnitz Date: Thu, 21 Dec 2023 00:18:48 +0000 (+0100) Subject: hypr: extend powermenu X-Git-Tag: v0.2~293 X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=7c482256ccb4c9b2cd37190caa6383bb6c12bf11;p=dotfiles.git hypr: extend powermenu --- 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