dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

console_theme.sh (1042B) [raw]


      1 #!/usr/bin/env bash
      2 # console_theme.sh
      3 # A small script to set the Virtual Console to use Gruvbox colors.
      4 # Colors originally from https://github.com/morhetz/gruvbox by Pavel Pertsev
      5 # For more on escape sequences see console_codes(4)
      6 if [[ "$TERM" =~ "linux" ]]; then
      7      # Gruvbox 16 colors
      8      printf "\033]P0282828" # 0:  Black
      9      printf "\033]P1cc241d" # 1:  Red
     10      printf "\033]P298971a" # 2:  Green
     11      printf "\033]P3d79921" # 3:  Yellow
     12      printf "\033]P4458588" # 4:  Blue
     13      printf "\033]P5b16286" # 5:  Magenta
     14      printf "\033]P6689d6a" # 6:  Cyan
     15      printf "\033]P7a89984" # 7:  White
     16      printf "\033]P8928374" # 8:  Bright Black
     17      printf "\033]P9fb4934" # 9:  Bright Red
     18      printf "\033]Pab8bb26" # 10: Bright Green
     19      printf "\033]Pbfabd2f" # 11: Bright Yellow
     20      printf "\033]Pc83a598" # 12: Bright Blue
     21      printf "\033]Pdd3869b" # 13: Bright Magenta
     22      printf "\033]Pe8ec07c" # 14: Bright Cyan
     23      printf "\033]Pfebdbb2" # 15: Bright White
     24      clear                  # Redraw the screen...
     25 fi