summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-polybar.nix
diff options
context:
space:
mode:
Diffstat (limited to 'common/modules/matugen/templates/matugen-polybar.nix')
-rw-r--r--common/modules/matugen/templates/matugen-polybar.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/common/modules/matugen/templates/matugen-polybar.nix b/common/modules/matugen/templates/matugen-polybar.nix
new file mode 100644
index 0000000..40cf1cf
--- /dev/null
+++ b/common/modules/matugen/templates/matugen-polybar.nix
@@ -0,0 +1,25 @@
+{
+ xdg.configFile = {
+ "matugen/templates/polybar-colors.ini" = {
+ enable = true;
+ text =
+ # ini
+ ''
+ [colors]
+ <* if {{ is_dark_mode }} *>
+ background = {{colors.surface.default.hex}}
+ background-alt = {{colors.surface_container.default.hex}}
+ <* else *>
+ background={{colors.surface_container.default.hex}}
+ background-alt = {{colors.surface_container_highest.default.hex}};
+ <* endif *>
+ foreground = {{colors.on_surface.default.hex}}
+ primary = {{colors.primary.default.hex}}
+ on_primary = {{colors.on_primary.default.hex}}
+ secondary = {{colors.secondary.default.hex}}
+ alert = {{colors.error.default.hex}}
+ disabled = {{colors.outline.default.hex}}
+ '';
+ };
+ };
+}