From 23642f44014504e4b0e8d7dd85a77f633ed122a4 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Tue, 27 Jun 2023 00:48:17 +0200 Subject: [PATCH] feat: press esc to close eww widgets --- hypr/hyprland.conf | 2 +- hypr/main.conf | 1 + hypr/scripts/autorotate.sh | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 880d6157..750ec68a 120000 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -1 +1 @@ -/nix/store/nsxbpm07iq9gr8h9pd6vvmj139nlm2gd-home-manager-files/.config/hypr/hyprland.conf \ No newline at end of file +/nix/store/0rh5brib0wdiw91maz1903xkyxfx8lgv-home-manager-files/.config/hypr/hyprland.conf \ No newline at end of file diff --git a/hypr/main.conf b/hypr/main.conf index 77c51209..4e9bc4b9 100644 --- a/hypr/main.conf +++ b/hypr/main.conf @@ -173,6 +173,7 @@ bind = $mainMod, C, killactive, bind = $mainMod, L, exec, $HOME/.config/gtklock/scripts/lock.sh bind = $mainMod SHIFT, E, exec, eww open closer && $HOME/.config/eww/scripts/open.sh powermenu +bindn =, Escape, exec, /home/matt/.config/eww/scripts/close-opened.sh bind = $mainMod SHIFT, SPACE, togglefloating, bind = $mainMod, D, exec, $menu bind = $mainMod, P, pseudo, # dwindle diff --git a/hypr/scripts/autorotate.sh b/hypr/scripts/autorotate.sh index 66ddde7d..e81d3104 100755 --- a/hypr/scripts/autorotate.sh +++ b/hypr/scripts/autorotate.sh @@ -25,7 +25,7 @@ function rotate_ms { rotate 1 ;; esac - elif [[ $(hyprctl monitors | grep "transform: 0") == "" ]]; then + elif [[ $(hyprctl monitors | grep "transform: 0") == "" ]]; then rotate 0 fi } @@ -37,7 +37,7 @@ function rotate { hyprctl keyword monitor $SCREEN,transform,$TARGET_ORIENTATION - for i in "${WAYLANDINPUT[@]}" + for i in "${WAYLANDINPUT[@]}" do hyprctl keyword device:"$i":transform $TARGET_ORIENTATION done