This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/scripts/colors/vconsole
Daniel Flanagan c8525970fa Initial work
2019-01-22 19:37:40 -06:00

63 lines
1.4 KiB
Bash
Executable file

#!/bin/sh
# Base16 Holodized - Virtual console color setup script
# Daniel Flanagan(https://lytedev.io)
color00="fdf6e3" # Base 00 - Black
color01="990833" # Base 08 - Red
color02="06623e" # Base 0B - Green
color03="947010" # Base 0A - Yellow
color04="004488" # Base 0D - Blue
color05="4e117f" # Base 0E - Magenta
color06="006677" # Base 0C - Cyan
color07="111111" # Base 05 - White
color08="8d8673" # Base 03 - Bright Black
color09=$color01 # Base 08 - Bright Red
color10=$color02 # Base 0B - Bright Green
color11=$color03 # Base 0A - Bright Yellow
color12=$color04 # Base 0D - Bright Blue
color13=$color05 # Base 0E - Bright Magenta
color14=$color06 # Base 0C - Bright Cyan
color15="555555" # Base 07 - Bright White
# 16 color space
echo -e "\e]P0$color00"
echo -e "\e]P1$color01"
echo -e "\e]P2$color02"
echo -e "\e]P3$color03"
echo -e "\e]P4$color04"
echo -e "\e]P5$color05"
echo -e "\e]P6$color06"
echo -e "\e]P7$color07"
echo -e "\e]P8$color08"
echo -e "\e]P9$color09"
echo -e "\e]PA$color10"
echo -e "\e]PB$color11"
echo -e "\e]PC$color12"
echo -e "\e]PD$color13"
echo -e "\e]PE$color14"
echo -e "\e]PF$color15"
if [ -x /sbin/clear ]; then
/sbin/clear
else
echo -e "\e[H"
echo -e "\e[2J"
fi
# clean up
unset color00
unset color01
unset color02
unset color03
unset color04
unset color05
unset color06
unset color07
unset color08
unset color09
unset color10
unset color11
unset color12
unset color13
unset color14
unset color15