From bde8d2ab7646609c410917a2b5f3c4c485626e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Sat, 16 Nov 2024 14:15:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(home/hyprland)=20refactor=20sha?= =?UTF-8?q?dow=20settings=20and=20add=20workspace/window=20rules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/desktop/hyprland.nix | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/home/desktop/hyprland.nix b/home/desktop/hyprland.nix index d993112..03bba84 100644 --- a/home/desktop/hyprland.nix +++ b/home/desktop/hyprland.nix @@ -55,10 +55,14 @@ in { # https://wiki.hyprland.org/Configuring/Variables/#decoration decoration = { rounding = 2; - drop_shadow = true; - shadow_range = 4; - shadow_render_power = 3; - "col.shadow" = "rgba(1a1a1aee)"; + + # https://wiki.hyprland.org/Configuring/Variables/#shadow + shadow = { + enabled = true; + range = 4; + render_power = 3; + color = "rgba(1a1a1aee)"; + }; # https://wiki.hyprland.org/Configuring/Variables/#blur blur = { @@ -79,7 +83,6 @@ in { dwindle = { pseudotile = true; preserve_split = true; - no_gaps_when_only = true; }; # https://wiki.hyprland.org/Configuring/Variables/#gestures @@ -96,6 +99,20 @@ in { key_press_enables_dpms = true; }; + # https://wiki.hyprland.org/Configuring/Workspace-Rules + workspace = [ + "w[tv1], gapsout:0, gapsin:0" + "f[1], gapsout:0, gapsin:0" + ]; + + # https://wiki.hyprland.org/Configuring/Window-Rules/ + windowrulev2 = [ + "bordersize 0, floating:0, onworkspace:w[tv1]" + "rounding 0, floating:0, onworkspace:w[tv1]" + "bordersize 0, floating:0, onworkspace:f[1]" + "rounding 0, floating:0, onworkspace:f[1]" + ]; + bind = [ "$mod, Return, exec, ${lib.getExe pkgs.alacritty}" "$mod, Q, killactive,"