From d475b5257c80919183eca25d68ffda02f9c6a9c9 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 26 Jul 2023 12:47:18 -0400 Subject: [PATCH] hyprland: Toggle dim_strength This makes animations work both ways when using dim_inactive. --- home/hyprland.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/home/hyprland.nix b/home/hyprland.nix index dd48e18..775f8df 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -74,7 +74,8 @@ in shadow_render_power = 3 col.shadow = rgba(1a1a1aee) fullscreen_opacity = 0.9999999 - dim_strength = 0.25 + dim_inactive = yes + dim_strength = 0 } animations { @@ -133,7 +134,8 @@ in bind = $SUPER, T, exec, tessen bind = $SUPER, V, togglefloating bind = $SUPER, B, centerwindow - bind = $SUPER, I, exec, hyprctl keyword decoration:dim_inactive $((1 - $(hyprctl getoption decoration:dim_inactive -j | jq -r ".int"))) + bind = $SUPER, I, exec, hyprctl keyword decoration:dim_strength 0.4 + bind = $SUPER_SHIFT, I, exec, hyprctl keyword decoration:dim_strength 0 bind = $SUPER, U, exec, ~/.config/hypr/gaps.sh bind = $SUPER, X, pin bind = $SUPER, F, fullscreen