summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-sequences.nix
diff options
context:
space:
mode:
authorbeeb5k (Vivek Tiwari) <beebeeb5k@gmail.com>2026-06-04 23:45:29 +0530
committerbeeb5k (Vivek Tiwari) <beebeeb5k@gmail.com>2026-06-04 23:45:29 +0530
commit2c2669697fdeaf7316feed3449d2082d255de5af (patch)
tree4d8ed566c2be1ec01c54a3eb6106c40fa79ddb8a /common/modules/matugen/templates/matugen-sequences.nix
parentb6e25e72d30d9810abc0eb48058334e2495350f8 (diff)
Debloat
Diffstat (limited to 'common/modules/matugen/templates/matugen-sequences.nix')
-rw-r--r--common/modules/matugen/templates/matugen-sequences.nix60
1 files changed, 39 insertions, 21 deletions
diff --git a/common/modules/matugen/templates/matugen-sequences.nix b/common/modules/matugen/templates/matugen-sequences.nix
index 03bc538..817edb9 100644
--- a/common/modules/matugen/templates/matugen-sequences.nix
+++ b/common/modules/matugen/templates/matugen-sequences.nix
@@ -9,32 +9,50 @@
text = ''
#!/bin/sh
SEQ=""
- SEQ="$SEQ$(printf '\033]4;0;{{colors.surface_variant.default.hex}}\007')"
+
+ # ANSI Palette (Regular 0-7)
+ SEQ="$SEQ$(printf '\033]4;0;{{colors.surface_container_high.default.hex}}\007')"
SEQ="$SEQ$(printf '\033]4;1;{{colors.error.default.hex}}\007')"
SEQ="$SEQ$(printf '\033]4;2;{{colors.primary.default.hex}}\007')"
- SEQ="$SEQ$(printf '\033]4;3;{{colors.secondary.default.hex}}\007')"
- SEQ="$SEQ$(printf '\033]4;4;{{colors.tertiary.default.hex}}\007')"
- SEQ="$SEQ$(printf '\033]4;5;{{colors.primary_fixed_dim.default.hex}}\007')"
- SEQ="$SEQ$(printf '\033]4;6;{{colors.secondary_fixed_dim.default.hex}}\007')"
- SEQ="$SEQ$(printf '\033]4;7;{{colors.on_surface.default.hex}}\007')"
- SEQ="$SEQ$(printf '\033]4;8;{{colors.on_surface_variant.default.hex}}\007')"
- SEQ="$SEQ$(printf '\033]4;9;{{colors.error.default.hex}}\007')"
- SEQ="$SEQ$(printf '\033]4;10;{{colors.primary.default.hex}}\007')"
- SEQ="$SEQ$(printf '\033]4;11;{{colors.secondary.default.hex}}\007')"
- SEQ="$SEQ$(printf '\033]4;12;{{colors.tertiary.default.hex}}\007')"
- SEQ="$SEQ$(printf '\033]4;13;{{colors.primary_fixed_dim.default.hex}}\007')"
- SEQ="$SEQ$(printf '\033]4;14;{{colors.secondary_fixed_dim.default.hex}}\007')"
+ SEQ="$SEQ$(printf '\033]4;3;{{colors.tertiary.default.hex}}\007')"
+ SEQ="$SEQ$(printf '\033]4;4;{{colors.secondary.default.hex}}\007')"
+ SEQ="$SEQ$(printf '\033]4;5;{{colors.primary_fixed.default.hex}}\007')"
+ SEQ="$SEQ$(printf '\033]4;6;{{colors.secondary_fixed.default.hex}}\007')"
+ SEQ="$SEQ$(printf '\033]4;7;{{colors.on_surface_variant.default.hex}}\007')"
+
+ # ANSI Palette (Bright 0-7 / ANSI 8-15)
+ SEQ="$SEQ$(printf '\033]4;8;{{colors.outline.default.hex}}\007')"
+ SEQ="$SEQ$(printf '\033]4;9;{{colors.error.default.hex | to_color | lighten: 10.0}}\007')"
+ SEQ="$SEQ$(printf '\033]4;10;{{colors.primary_container.default.hex}}\007')"
+ SEQ="$SEQ$(printf '\033]4;11;{{colors.tertiary_container.default.hex}}\007')"
+ SEQ="$SEQ$(printf '\033]4;12;{{colors.secondary_container.default.hex}}\007')"
+ SEQ="$SEQ$(printf '\033]4;13;{{colors.inverse_primary.default.hex}}\007')"
+ SEQ="$SEQ$(printf '\033]4;14;{{colors.outline_variant.default.hex}}\007')"
SEQ="$SEQ$(printf '\033]4;15;{{colors.on_surface.default.hex}}\007')"
+
+ # UI Elements
+ # Default Foreground (Text Color)
SEQ="$SEQ$(printf '\033]10;{{colors.on_surface.default.hex}}\007')"
- SEQ="$SEQ$(printf '\033]11;{{colors.background.default.hex}}\007')"
- # <* if {{ is_dark_mode }} *>
- # SEQ="$SEQ$(printf '\033]11;{{colors.background.default.hex}}\007')"
- # <* else *>
- # SEQ="$SEQ$(printf '\033]11;{{colors.surface_container.default.hex}}\007')"
- # <* endif *>
+
+ <* if {{ is_dark_mode }} *>
+ # Set terminal background to surface color for dark mode
+ SEQ="$SEQ$(printf '\033]11;{{colors.surface.default.hex}}\007')"
+ <* else *>
+ # Set terminal background to a lighter surface container color for light mode
+ SEQ="$SEQ$(printf '\033]11;{{colors.surface_container_low.default.hex}}\007')"
+ <* endif *>
+
+ # Cursor Color (Block)
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.primary_container.default.hex}}\007')"
+
+ # Cursor Foreground (Text inside block cursor)
+ SEQ="$SEQ$(printf '\033]13;{{colors.on_primary.default.hex}}\007')"
+
+ # Selection Background
+ SEQ="$SEQ$(printf '\033]17;{{colors.primary_container.default.hex}}\007')"
+
+ # Selection Foreground
+ SEQ="$SEQ$(printf '\033]19;{{colors.on_primary_container.default.hex}}\007')"
for tty in /dev/pts/*; do
[ -w "$tty" ] && printf '%s' "$SEQ" > "$tty"