summaryrefslogtreecommitdiff
path: root/common/modules/matugen
diff options
context:
space:
mode:
authorbrustybee <bee@4d2.org>2026-03-07 18:51:00 +0530
committerbrustybee <bee@4d2.org>2026-03-07 18:51:00 +0530
commit7dd886693c48fe94aa7b759e937a9cd15456512c (patch)
treea913b3aea75d801224b4512856d28b8d902f6727 /common/modules/matugen
parent6b7e27bb07f48031f003557815a1fe0b7450194d (diff)
term sequence to chnage colors on fly and update wall-picker to include sequence script
Diffstat (limited to 'common/modules/matugen')
-rw-r--r--common/modules/matugen/default.nix8
-rw-r--r--common/modules/matugen/templates/matugen-sequences.nix41
2 files changed, 49 insertions, 0 deletions
diff --git a/common/modules/matugen/default.nix b/common/modules/matugen/default.nix
index 45c6d50..316ff06 100644
--- a/common/modules/matugen/default.nix
+++ b/common/modules/matugen/default.nix
@@ -66,6 +66,10 @@ in
template = "colors-xresources";
target = "~/.config/x11/matugen.Xresources";
};
+ sequences = {
+ template = "sequences";
+ target = "~/.config/sequences";
+ };
};
};
};
@@ -183,6 +187,10 @@ in
input_path = '~/.config/matugen/templates/zed.json'
output_path = '~/.config/zed/themes/matugen.json'
+ [templates.sequences]
+ input_path = '~/.config/matugen/templates/sequences'
+ output_path = '~/.config/wallust/templates/sequences'
+
[templates.zen]
input_path = '~/.config/matugen/templates/zen.css'
output_path = '~/.config/wallust/templates/userChrome.css'
diff --git a/common/modules/matugen/templates/matugen-sequences.nix b/common/modules/matugen/templates/matugen-sequences.nix
new file mode 100644
index 0000000..d974ae9
--- /dev/null
+++ b/common/modules/matugen/templates/matugen-sequences.nix
@@ -0,0 +1,41 @@
+{
+ config,
+ lib,
+ ...
+}:
+{
+ config = lib.mkIf config.beeMods.matugen.enable {
+ xdg.configFile."matugen/templates/sequences" = {
+ text = ''
+ #!/bin/sh
+ SEQ=""
+ SEQ="$SEQ$(printf '\033]4;0;rgb:\{{color0 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;1;rgb:\{{color1 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;2;rgb:\{{color2 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;3;rgb:\{{color3 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;4;rgb:\{{color4 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;5;rgb:\{{color5 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;6;rgb:\{{color6 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;7;rgb:\{{color7 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;8;rgb:\{{color8 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;9;rgb:\{{color9 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;10;rgb:\{{color10 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;11;rgb:\{{color11 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;12;rgb:\{{color12 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;13;rgb:\{{color13 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;14;rgb:\{{color14 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]4;15;rgb:\{{color15 | xrgb}}\007')"
+ SEQ="$SEQ$(printf '\033]10;{{colors.on_surface.default.hex}}\007')"
+ SEQ="$SEQ$(printf '\033]11;{{colors.background.default.hex}}\007')"
+ SEQ="$SEQ$(printf '\033]12;{{colors.primary.default.hex}}\007')"
+ SEQ="$SEQ$(printf '\033]17;{{colors.on_surface.default.hex}}\007')"
+ SEQ="$SEQ$(printf '\033]19;{{colors.background.default.hex}}\007')"
+
+ for tty in /dev/pts/*; do
+ [ -w "$tty" ] && printf '%s' "$SEQ" > "$tty"
+ done
+ '';
+ executable = true;
+ };
+ };
+}