From 9388f64ebe5d6bf99f35b67146f2aa0d765a12d0 Mon Sep 17 00:00:00 2001 From: lanovets Date: Mon, 10 Mar 2025 16:03:19 +0000 Subject: [PATCH] river: add cursor size and background color (#968) Respected the cursor size set in stylix and added a background color because the Hyprland module includes one --- modules/river/hm.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/modules/river/hm.nix b/modules/river/hm.nix index 6794480b..d2eb77d3 100644 --- a/modules/river/hm.nix +++ b/modules/river/hm.nix @@ -5,11 +5,17 @@ config.lib.stylix.mkEnableTarget "River" true; config = lib.mkIf (config.stylix.enable && config.stylix.targets.river.enable) { - wayland.windowManager.river.settings = { - border-color-focused = "0x${config.lib.stylix.colors.base0D}"; - border-color-unfocused = "0x${config.lib.stylix.colors.base03}"; - border-color-urgent = "0x${config.lib.stylix.colors.base08}"; - xcursor-theme = config.stylix.cursor.name; - }; + wayland.windowManager.river.settings = + let + inherit (config.lib.stylix) colors; + inherit (config.stylix) cursor; + in + { + border-color-focused = "0x${colors.base0D}"; + border-color-unfocused = "0x${colors.base03}"; + border-color-urgent = "0x${colors.base08}"; + background-color = "0x${colors.base00}"; + xcursor-theme = "${cursor.name} ${toString cursor.size}"; + }; }; }