diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-18 23:26:17 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-18 23:26:17 +0530 |
| commit | 6b0161b2639bb49e270754e90f4f8a47311c5198 (patch) | |
| tree | fc0f4a138b311061daad5ddeb6ed50314f1f5a1a /modules/desktop/eww/default.nix | |
| parent | 53eac37422f77750adbc801f71b85ab04cf2b7f9 (diff) | |
| download | home-manager-config-6b0161b2639bb49e270754e90f4f8a47311c5198.tar.gz home-manager-config-6b0161b2639bb49e270754e90f4f8a47311c5198.zip | |
chore: projectwide refactoring
- Using more consistent naming conventions across the project. Using java style super
descriptive variable names.
- Removed slop comments in favor of using more descriptive naming conventions.
Diffstat (limited to 'modules/desktop/eww/default.nix')
| -rw-r--r-- | modules/desktop/eww/default.nix | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/modules/desktop/eww/default.nix b/modules/desktop/eww/default.nix index dfc80cd..be6236f 100644 --- a/modules/desktop/eww/default.nix +++ b/modules/desktop/eww/default.nix @@ -1,8 +1,13 @@ +# ElKowar's Wacky Widgets — desktop widgets and bar { config, lib, + pkgs, ... }: +let + base16Colors = import ../../colors/base16 { inherit config lib pkgs; }; +in { imports = [ ./bar/bar.nix @@ -22,38 +27,35 @@ enable = true; systemd = { enable = true; - # Nothing ever activates this, so home-manager's eww.service unit - # exists but is never auto-started by the session. Rely on eww-bar.service - # manually starts eww service. + # Nothing auto-starts home-manager's eww.service unit; the eww-bar + # service below starts the daemon on demand. target = "eww-daemon-manual.target"; }; scssConfig = let - baseSize = config.fonts.size; + themedStyleSheet = + builtins.replaceStrings + [ + "@@font-family@@" + "@@font-size@@" + "@@font-size-icon@@" + "@@font-size-label@@" + "@@font-size-small@@" + "@@font-size-idx@@" + ] + [ + config.fonts.normal + (toString config.fonts.size) + (toString config.fonts.iconSize) + (toString config.fonts.labelSize) + (toString config.fonts.smallSize) + (toString config.fonts.idxSize) + ] + (builtins.readFile ./eww.scss); in - builtins.readFile ( - config.scheme { - template = - builtins.replaceStrings - [ - "@@font-family@@" - "@@font-size@@" - "@@font-size-icon@@" - "@@font-size-label@@" - "@@font-size-small@@" - "@@font-size-idx@@" - ] - [ - config.fonts.normal - (toString baseSize) - (toString config.fonts.iconSize) - (toString config.fonts.labelSize) - (toString config.fonts.smallSize) - (toString config.fonts.idxSize) - ] - (builtins.readFile ./eww.scss); - } - ); + builtins.readFile (base16Colors { + templateFileOrContent = themedStyleSheet; + }); }; systemd.user.services.eww-bar = { |
