Skip to content

Commit

Permalink
hyprland: compatible config with v0.45.2
Browse files Browse the repository at this point in the history
  • Loading branch information
adomixaszvers committed Jan 11, 2025
1 parent 0ab1709 commit 4edc6fe
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 39 deletions.
35 changes: 26 additions & 9 deletions profiles/wm/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@
};
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.hyprland.overrideAttrs (_old: {
patches = [ (builtins.path { path = ./hyprctl-deps.patch; }) ];
});
xwayland.enable = true;
settings = {

Expand Down Expand Up @@ -129,6 +126,7 @@
"col.inactive_border" = "rgba(595959aa)";

layout = "master";
allow_tearing = true;
};

decoration = {
Expand All @@ -142,10 +140,13 @@
new_optimizations = true;
};

drop_shadow = true;
shadow_range = 4;
shadow_render_power = 3;
"col.shadow" = "rgba(1a1a1aee)";
shadow = {
enabled = true;
range = 4;
render_power = 3;
color = "rgba(1a1a1aee)";
};

};

animations = {
Expand All @@ -156,13 +157,11 @@
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = true; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true; # you probably want this
no_gaps_when_only = true;
};

master = {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_status = "master";
no_gaps_when_only = true;
};

gestures = {
Expand Down Expand Up @@ -260,6 +259,24 @@
"stayfocused, title:^()$,class:^(steam)$"
"minsize 1 1, title:^()$,class:^(steam)$"
"fullscreen,class:^(.gamescope-wrapped)$"

# smart gaps
# see https://wiki.hyprland.org/0.45.0/Configuring/Workspace-Rules/#smart-gaps
# damn you, Vaxry
# no_gaps_when_only was good enough :/
"bordersize 0, floating:0, onworkspace:w[t1]"
"rounding 0, floating:0, onworkspace:w[t1]"
"bordersize 0, floating:0, onworkspace:w[tg1]"
"rounding 0, floating:0, onworkspace:w[tg1]"
"bordersize 0, floating:0, onworkspace:f[1]"
"rounding 0, floating:0, onworkspace:f[1]"
];

# for smart gaps
workspace = [
"w[t1], gapsout:0, gapsin:0"
"w[tg1], gapsout:0, gapsin:0"
"f[1], gapsout:0, gapsin:0"
];
};
};
Expand Down
30 changes: 0 additions & 30 deletions profiles/wm/hyprland/hyprctl-deps.patch

This file was deleted.

0 comments on commit 4edc6fe

Please sign in to comment.