Skip to content

Instantly share code, notes, and snippets.

View avalak's full-sized avatar

Avalak avalak

View GitHub Profile
@avalak
avalak / vt-color-scheme.py
Created December 19, 2013 09:12
Virtual Terminal color scheme generator for linux kernel and grub2
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Usage:
# 1. Save as `vt-color-scheme.py` in $PATH (/usr/bin for example)
# 2. Make executable `chmod +x vt-color-scheme.py`
# 3. Add `$(vt-color-scheme.py)` to `GRUB_CMDLINE_LINUX` in `/etc/default/grub`
# example `GRUB_CMDLINE_LINUX="$(vt-color-scheme.py)"`
# 4. Create new grub config with `sudo grub-mkconfig -o /boot/grub/grub.cfg`
# 5. Reboot to apply changes