11.stylix/modules/river/hm.nix
lanovets 9388f64ebe
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
2025-03-10 16:03:19 +00:00

21 lines
645 B
Nix

{ config, lib, ... }:
{
options.stylix.targets.river.enable =
config.lib.stylix.mkEnableTarget "River" true;
config = lib.mkIf (config.stylix.enable && config.stylix.targets.river.enable) {
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}";
};
};
}