Skip to content

Instantly share code, notes, and snippets.

@avalak
avalak / vt-color-scheme.py
Last active April 23, 2026 21:18
Virtual Terminal color scheme generator for linux kernel and grub2
#!/usr/bin/env python3
"""
Generate kernel command-line parameters to apply the Tango color scheme
to Linux virtual terminals (vt.default_red/grn/blu).
Usage:
1. Save this script somewhere in $PATH, e.g. /usr/local/bin/vt-color-scheme
2. chmod +x /usr/local/bin/vt-color-scheme
3. Add "$(vt-color-scheme)" to GRUB_CMDLINE_LINUX in /etc/default/grub
4. sudo grub-mkconfig -o /boot/grub/grub.cfg