51 lines
1.8 KiB
Nix
Raw Normal View History

2023-11-04 02:28:27 +01:00
{ lib, config, pkgs, ... }: {
config = lib.mkIf (config.homecfg.wm == "Wayland") {
2023-11-29 23:12:08 +01:00
home.packages = with pkgs; [ eww-wayland jaq custom.amdgpu_top ];
2023-11-04 02:28:27 +01:00
xdg.configFile."eww" = {
source = lib.cleanSourceWith {
filter = name: _type:
let baseName = baseNameOf (toString name);
in !(lib.hasSuffix ".nix" baseName) && (baseName != "_colors.scss");
2023-11-21 16:52:35 +01:00
src = lib.cleanSource ./bar/.;
2023-11-04 02:28:27 +01:00
};
recursive = true;
};
# colors file
xdg.configFile."eww/css/_colors.scss".text = ''
$base00: #${config.colorScheme.colors.base00};
$base01: #${config.colorScheme.colors.base01};
$base02: #${config.colorScheme.colors.base02};
$base03: #${config.colorScheme.colors.base03};
$base04: #${config.colorScheme.colors.base04};
$base05: #${config.colorScheme.colors.base05};
$base06: #${config.colorScheme.colors.base06};
$base07: #${config.colorScheme.colors.base07};
$base08: #${config.colorScheme.colors.base08};
$base09: #${config.colorScheme.colors.base09};
$base0A: #${config.colorScheme.colors.base0A};
$base0B: #${config.colorScheme.colors.base0B};
$base0C: #${config.colorScheme.colors.base0C};
$base0D: #${config.colorScheme.colors.base0D};
$base0E: #${config.colorScheme.colors.base0E};
$base0F: #${config.colorScheme.colors.base0F};
$fg: $base07;
2023-11-21 19:19:09 +01:00
$bg0: $base00;
2023-11-04 02:28:27 +01:00
$bg1: $base01;
2023-11-21 16:52:35 +01:00
2023-11-21 19:19:09 +01:00
$border-color: $base03;
$border-color-focus: $base04;
2023-11-21 16:52:35 +01:00
$border-radius: ${config.colorScheme.colors.border-radius}px;
$border-width: ${config.colorScheme.colors.border-width}px;
$gaps-screen: ${config.colorScheme.colors.gaps-screen}px;
$gaps-window: ${config.colorScheme.colors.gaps-window}px;
2023-11-04 02:28:27 +01:00
'';
};
}