From: Andre Ramnitz Date: Fri, 22 Dec 2023 12:21:06 +0000 (+0100) Subject: hypr: update powermenu X-Git-Tag: v0.2~289 X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=a44182e100c7d0106eafb9ee4945bd068620536d;p=dotfiles.git hypr: update powermenu --- diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 4bc30040..365c784c 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -205,8 +205,8 @@ bind = $mainmod, S, togglesplit, # dwindle bind = ALT SHIFT, F12, exec, ~/.config/hypr/scripts/gamemode.sh bind = $mainmod, G, togglegroup bind = $mainmod SHIFT, G, lockactivegroup, toggle -bind = $mainmod, TAB, focuscurrentorlast -bind = ALT, TAB, exec, ~/.config/hypr/scripts/windowswitch-rg.sh +bind = ALT, TAB, focuscurrentorlast +bind = $mainmod, TAB, exec, ~/.config/hypr/scripts/windowswitch-rg.sh # Move focus with mainMod + arrow keys bind = $mainmod, left, movefocus, l @@ -298,4 +298,4 @@ bind = $mainmod, Print, exec, grim -g "$(slurp)" - | swappy -f - # 'scratchpad bind = $mainmod, I, togglespecialworkspace, overlay -bind = $mainmod SHIFT, I, movetoworkspace, special:overlay +bind = $mainmod SHIFT, I, movetoworkspacesilent, special:overlay diff --git a/config/hypr/scripts/powermenu.sh b/config/hypr/scripts/powermenu.sh index 62d58128..8f4367ce 100755 --- a/config/hypr/scripts/powermenu.sh +++ b/config/hypr/scripts/powermenu.sh @@ -11,9 +11,9 @@ case $selected in logout) hyprctl dispatch exit;; suspend) - exec loginctl suspend;; + sync && exec loginctl suspend;; reboot) - exec loginctl reboot;; + sync && exec loginctl reboot;; shutdown) - exec loginctl poweroff -i;; + sync && exec loginctl poweroff -i;; esac