From 415f9f859e5ee48bd7e28468b95cd3fadba33f7e Mon Sep 17 00:00:00 2001 From: brustybee Date: Fri, 3 Apr 2026 03:27:14 +0530 Subject: add bspwm and polybar ( kinda ) --- common/modules/matugen/templates/matugen-bspwm.nix | 16 ++++++++++++++ .../modules/matugen/templates/matugen-polybar.nix | 25 ++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 common/modules/matugen/templates/matugen-bspwm.nix create mode 100644 common/modules/matugen/templates/matugen-polybar.nix (limited to 'common/modules/matugen/templates') diff --git a/common/modules/matugen/templates/matugen-bspwm.nix b/common/modules/matugen/templates/matugen-bspwm.nix new file mode 100644 index 0000000..1e0a546 --- /dev/null +++ b/common/modules/matugen/templates/matugen-bspwm.nix @@ -0,0 +1,16 @@ +{ + xdg.configFile = { + "matugen/templates/bspwm-colors" = { + enable = true; + text = + # sh + '' + #!/bin/bash + bspc config focused_border_color '{{colors.primary.default.hex}}' + bspc config active_border_color '{{colors.tertiary.default.hex}}' + bspc config normal_border_color '{{colors.outline.default.hex}}' + bspc config presel_feedback_color '{{colors.secondary.default.hex}}' + ''; + }; + }; +} 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}} + ''; + }; + }; +} -- cgit v1.3.1