diff options
Diffstat (limited to 'common/modules/matugen')
| -rw-r--r-- | common/modules/matugen/default.nix | 12 | ||||
| -rw-r--r-- | common/modules/matugen/templates/matugen-bspwm.nix | 16 | ||||
| -rw-r--r-- | common/modules/matugen/templates/matugen-polybar.nix | 25 |
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}} + ''; + }; + }; +} |
