diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-05-11 11:01:42 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-05-11 11:01:42 -0700 |
| commit | d0d01097a92c1211eeeac95bc79b3571167a738f (patch) | |
| tree | 613dde67670537339bdc1311d39e96fae5468d4a /modules | |
| parent | e6e43a652e4dadc2aca15dd14b076a51378edf86 (diff) | |
Add EWW color definitions
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/home/default.nix | 1 | ||||
| -rw-r--r-- | modules/home/eww.nix | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/modules/home/default.nix b/modules/home/default.nix index e913cb4..9648834 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -4,6 +4,7 @@ imports = [ ./colors.nix ./discord.nix + ./eww.nix ./flameshot.nix ./git.nix ./i3.nix diff --git a/modules/home/eww.nix b/modules/home/eww.nix new file mode 100644 index 0000000..0b57f06 --- /dev/null +++ b/modules/home/eww.nix @@ -0,0 +1,42 @@ +{ config, lib, ... }: + +{ + xdg.configFile."eww/colors.css".text = let c = config.theme.colors; in '' + @define-color accent #${c.accent}; + + @define-color black #${c.black}; + @define-color red #${c.red}; + @define-color green #${c.green}; + @define-color yellow #${c.yellow}; + @define-color blue #${c.blue}; + @define-color magenta #${c.magenta}; + @define-color cyan #${c.cyan}; + @define-color white #${c.white}; + + @define-color brightBlack #${c.brightBlack}; + @define-color brightRed #${c.brightRed}; + @define-color brightGreen #${c.brightGreen}; + @define-color brightYellow #${c.brightYellow}; + @define-color brightBlue #${c.brightBlue}; + @define-color brightMagenta #${c.brightMagenta}; + @define-color brightCyan #${c.brightCyan}; + @define-color brightWhite #${c.brightWhite}; + + @define-color bg #${c.bg}; + @define-color bg0 #${c.bg0}; + @define-color bg1 #${c.bg1}; + @define-color bg2 #${c.bg2}; + @define-color bg3 #${c.bg3}; + @define-color bg4 #${c.bg4}; + + @define-color fg #${c.fg}; + @define-color fg0 #${c.fg0}; + @define-color fg1 #${c.fg1}; + @define-color fg2 #${c.fg2}; + @define-color fg3 #${c.fg3}; + @define-color fg4 #${c.fg4}; + + @define-color orange #${c.orange}; + @define-color brightOrange #${c.brightOrange}; + ''; +} |