From 8b7964a8b5906bdcfe3f03e9786e92f8320efe6c Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sun, 12 Nov 2023 23:41:11 +0100 Subject: [PATCH] Hyprland: better gaps --- modules/hm/hyprland.nix | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/modules/hm/hyprland.nix b/modules/hm/hyprland.nix index d3c6834..15c7b35 100644 --- a/modules/hm/hyprland.nix +++ b/modules/hm/hyprland.nix @@ -14,6 +14,7 @@ xdg.configFile."hypr/hyprland.conf".text = let + strPalette = pkgs.lib.nix-rice.palette.toRgbaShortHex pkgs.rice.colorPalette; ya = pkgs.writeShellScript "ya" '' tmp="$(mktemp -t "yazi-cwd.XXXXX")" yazi --cwd-file="$tmp" @@ -75,11 +76,11 @@ general { # See https://wiki.hyprland.org/Configuring/Variables/ for more - gaps_in = 5 - gaps_out = 20 + gaps_in = 4 + gaps_out = 8 border_size = 2 - col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg - col.inactive_border = rgba(595959aa) + col.active_border = rgba(${strPalette.normal.yellow}) rgba(${strPalette.normal.red}) 45deg + col.inactive_border = rgba(${strPalette.bright.black}) layout = dwindle } @@ -161,16 +162,16 @@ bind = SUPER, J, togglesplit, # dwindle # Move focus to relative position - bind = SUPER, H, movefocus, l - bind = SUPER, L, movefocus, r - bind = SUPER, K, movefocus, u - bind = SUPER, J, movefocus, d + bind = SUPER, left, movefocus, l + bind = SUPER, right, movefocus, r + bind = SUPER, up, movefocus, u + bind = SUPER, down, movefocus, d # Move window to relative position - bind = SUPER_SHIFT, H, movewindow, l - bind = SUPER_SHIFT, L, movewindow, r - bind = SUPER_SHIFT, K, movewindow, u - bind = SUPER_SHIFT, J, movewindow, d + bind = SUPER_SHIFT, left, movewindow, l + bind = SUPER_SHIFT, right, movewindow, r + bind = SUPER_SHIFT, up, movewindow, u + bind = SUPER_SHIFT, down, movewindow, d # Switch workspaces with mainMod + [0-9] bind = SUPER, 1, workspace, 1