11.stylix/modules/rio/hm.nix
Alexandra Østermark 0779799431
rio: init (#882)
Closes: https://github.com/danth/stylix/issues/647
Link: https://github.com/danth/stylix/pull/882

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-20 13:33:04 +01:00

58 lines
1.5 KiB
Nix

# Documentation is available at:
# - https://raphamorim.io/rio/docs/config
{
config,
lib,
...
}:
let
colors = config.lib.stylix.colors.withHashtag;
in
{
options.stylix.targets.rio.enable = config.lib.stylix.mkEnableTarget "Rio" true;
config = lib.mkIf (config.stylix.enable && config.stylix.targets.rio.enable) {
programs.rio.settings = {
fonts = with config.stylix.fonts; {
family = monospace.name;
size = sizes.terminal;
};
window.opacity = with config.stylix.opacity; terminal;
colors = with colors; {
selection-background = base02;
selection-foreground = base05;
cursor = base05;
tabs = base01;
tabs-active = base02;
background = base00;
foreground = base05;
black = base01;
red = base08;
yellow = base0A;
green = base0B;
cyan = base0C;
blue = base0D;
magenta = base0E;
white = base06;
dim-foreground = base05;
dim-black = base01;
dim-red = base08;
dim-yellow = base0A;
dim-green = base0B;
dim-cyan = base0C;
dim-blue = base0D;
dim-magenta = base0E;
dim-white = base04;
light-foreground = base05;
light-black = base02;
light-red = base08;
light-yellow = base0A;
light-green = base0B;
light-cyan = base0C;
light-blue = base0D;
light-magenta = base0E;
light-white = base07;
};
};
};
}