From 5563375ab46c8fbd34ed70d47447c227fdcb2c19 Mon Sep 17 00:00:00 2001 From: Myned Date: Sun, 8 Sep 2024 22:19:28 -0500 Subject: [PATCH] hyprland: use special_fallthrough for scratchpad Signed-off-by: Myned --- options/custom/desktops/hyprland/rules.nix | 19 ++++++++++++++++--- options/custom/desktops/hyprland/settings.nix | 3 ++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/options/custom/desktops/hyprland/rules.nix b/options/custom/desktops/hyprland/rules.nix index e04b912..a58c3ab 100644 --- a/options/custom/desktops/hyprland/rules.nix +++ b/options/custom/desktops/hyprland/rules.nix @@ -111,7 +111,10 @@ in "suppressevent maximize" "syncfullscreen" ]) - (floating true [ "bordercolor rgb(073642)" ]) + (floating true [ + "bordercolor rgb(073642)" + "workspace special:scratchpad" + ]) (fullscreen true [ "idleinhibit focus" ]) (pinned true [ "bordercolor rgb(073642) rgb(073642)" ]) @@ -124,6 +127,7 @@ in (tag "browser" [ "group new lock" "tile" + "workspace unset" ]) (tag "clipboard" [ "move ${clipboard.x} ${clipboard.y}" @@ -135,10 +139,12 @@ in "move ${dropdown.x} ${dropdown.y}" "pin" "size ${dropdown.w} ${dropdown.h}" + "workspace special:dropdown" ]) (tag "editor" [ "group invade" "tile" + "workspace unset" ]) (tag "files" [ "size 1000 625" @@ -164,9 +170,13 @@ in (tag "social" [ "group" "tile" + "workspace unset" ]) (tag "steam" [ "workspace special:steam" ]) - (tag "terminal" [ "tile" ]) + (tag "terminal" [ + "tile" + "workspace unset" + ]) (tag "vm" [ "workspace special:vm" ]) (tag "wine" [ "noborder" @@ -188,7 +198,10 @@ in (class "Element" [ "tag +social" ]) (class "foot" [ "tag +terminal" ]) (class "kitty" [ "tag +terminal" ]) - (class "libreoffice.+" [ "tile" ]) + (class "libreoffice.+" [ + "tile" + "workspace unset" + ]) (class "moe\\.launcher\\.the-honkers-railway-launcher" [ "size 1280 730" "tag +game" diff --git a/options/custom/desktops/hyprland/settings.nix b/options/custom/desktops/hyprland/settings.nix index 85dd43a..2cdca51 100644 --- a/options/custom/desktops/hyprland/settings.nix +++ b/options/custom/desktops/hyprland/settings.nix @@ -122,7 +122,7 @@ in "col.shadow_inactive" = "rgba(0000001a)"; "col.shadow" = "rgba(00000040)"; blur.enabled = false; - dim_special = 0.5; + dim_special = 0; rounding = 12; shadow_range = 50; shadow_render_power = 4; # Distance falloff @@ -176,6 +176,7 @@ in repeat_rate = 40; sensitivity = 0.5; #// scroll_factor = 0.75; + special_fallthrough = true; # Alternative to toggle script touchpad = { clickfinger_behavior = true; # Multi-finger clicks