Link: https://github.com/nix-community/stylix/pull/1450 Reviewed-by: pancho horrillo <pancho@pancho.name> Reviewed-by: Daniel Thwaites <danth@danth.me> Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
28 lines
784 B
Nix
28 lines
784 B
Nix
{ lib, config, ... }:
|
|
let
|
|
opacityHex = lib.toHexString (
|
|
builtins.ceil (config.stylix.opacity.desktop * 255)
|
|
);
|
|
in
|
|
{
|
|
# Merge this with your bar's theme's overrides with //config.lib.stylix.i3status-rust.bar
|
|
config.lib.stylix.i3status-rust.bar =
|
|
lib.mapAttrs (n: v: if lib.hasSuffix "_bg" n then v + opacityHex else v)
|
|
(
|
|
with config.lib.stylix.colors.withHashtag;
|
|
{
|
|
idle_bg = base00;
|
|
idle_fg = base05;
|
|
info_bg = base09;
|
|
info_fg = base00;
|
|
good_bg = base01;
|
|
good_fg = base05;
|
|
warning_bg = base0A;
|
|
warning_fg = base00;
|
|
critical_bg = base08;
|
|
critical_fg = base00;
|
|
separator_bg = base00;
|
|
separator_fg = base05;
|
|
}
|
|
);
|
|
}
|