summaryrefslogtreecommitdiff
path: root/common/modules/matugen
diff options
context:
space:
mode:
authorbrustybee <beebeeb5k@gmail.com>2026-04-03 03:27:14 +0530
committerbrustybee <beebeeb5k@gmail.com>2026-04-03 03:27:14 +0530
commit415f9f859e5ee48bd7e28468b95cd3fadba33f7e (patch)
tree6ac11dd847a9f05742cd3498eabd7bcb7d19b284 /common/modules/matugen
parent141855bcaed2d386107240f4090bf7f4a7364f7f (diff)
add bspwm and polybar ( kinda )
Diffstat (limited to 'common/modules/matugen')
-rw-r--r--common/modules/matugen/default.nix12
-rw-r--r--common/modules/matugen/templates/matugen-bspwm.nix16
-rw-r--r--common/modules/matugen/templates/matugen-polybar.nix25
3 files changed, 53 insertions, 0 deletions
diff --git a/common/modules/matugen/default.nix b/common/modules/matugen/default.nix
index 5ce3014..b0ccf94 100644
--- a/common/modules/matugen/default.nix
+++ b/common/modules/matugen/default.nix
@@ -186,6 +186,18 @@ in
output_path = '~/.config/wallust/templates/sequences'
''}
+ ${lib.optionalString config.beeMods.bspwm.enable ''
+ [templates.bspwm]
+ input_path = "~/.config/matugen/templates/bspwm-colors"
+ output_path = "~/.config/bspwm/colors"
+ post_hook = "bspc wm -r"
+ ''}
+
+ [templates.polybar]
+ input_path = "~/.config/matugen/templates/polybar-colors.ini"
+ output_path = "~/.config/polybar/colors.ini"
+ post_hook = "pkill polybar; polybar &"
+
[templates.zed]
input_path = '~/.config/matugen/templates/zed.json'
output_path = '~/.config/zed/themes/matugen.json'
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}}
+ '';
+ };
+ };
+}