From d524383340a84bff991f7d389f30e4d31ffb1d62 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Wed, 2 Apr 2025 15:07:36 +0300 Subject: [PATCH] style: cursor --- modules/user/patterns/hyprland.nix | 3 ++- user/chest/modules/style.nix | 6 ++++++ user/sweetbread/modules/hyprland.nix | 5 ++--- user/sweetbread/modules/style.nix | 8 +++++++- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/modules/user/patterns/hyprland.nix b/modules/user/patterns/hyprland.nix index 61c306a..5d5ef6d 100644 --- a/modules/user/patterns/hyprland.nix +++ b/modules/user/patterns/hyprland.nix @@ -97,7 +97,8 @@ "XDG_SESSION_DESKTOP,Hyprland" "WLR_NO_HARDWARE_CURSORS,1" - "XCURSOR_SIZE,36" + "XCURSOR_SIZE, ${toString config.stylix.cursor.size}" + "XCURSOR_THEME, ${config.stylix.cursor.name}" "XDG_SCREENSHOTS_DIR,~/screens" ]; diff --git a/user/chest/modules/style.nix b/user/chest/modules/style.nix index 6e45b14..bdcec25 100644 --- a/user/chest/modules/style.nix +++ b/user/chest/modules/style.nix @@ -21,6 +21,12 @@ dark = "Pop-Dark"; }; + cursor = { + name = "catppuccin-mocha-peach-cursors"; + size = 24; + package = pkgs.catppuccin-cursors.mochaPeach; + }; + fonts = { monospace = { name = "JetBrains Mono"; diff --git a/user/sweetbread/modules/hyprland.nix b/user/sweetbread/modules/hyprland.nix index 6cd00ba..71f626e 100644 --- a/user/sweetbread/modules/hyprland.nix +++ b/user/sweetbread/modules/hyprland.nix @@ -25,8 +25,8 @@ gaps_in = 5; gaps_out = 20; border_size = 3; - "col.active_border" = "rgba(${colors.base0C}ee) rgba(${colors.base0B}ee) 45deg"; - "col.inactive_border" = "rgba(${colors.base05}aa)"; + "col.active_border" = lib.mkForce "rgba(${colors.base0C}ee) rgba(${colors.base0B}ee) 45deg"; + "col.inactive_border" = lib.mkForce "rgba(${colors.base05}aa)"; layout = "dwindle"; }; @@ -45,7 +45,6 @@ enabled = true; range = 4; render_power = 3; - color = "rgba(1a1a1aee)"; }; }; diff --git a/user/sweetbread/modules/style.nix b/user/sweetbread/modules/style.nix index cc723e9..4eb6d8a 100644 --- a/user/sweetbread/modules/style.nix +++ b/user/sweetbread/modules/style.nix @@ -2,7 +2,7 @@ stylix = { enable = true; targets = { - hyprland.enable = false; + hyprland.enable = true; waybar.enable = false; kitty.variant256Colors = true; }; @@ -21,6 +21,12 @@ dark = "Pop-Dark"; }; + cursor = { + name = "catppuccin-mocha-green-cursors"; + size = 24; + package = pkgs.catppuccin-cursors.mochaGreen; + }; + fonts = { monospace = { name = "JetBrains Mono";