mirror of
https://github.com/lloeki/linux-console-themes.git
synced 2025-12-06 02:54:40 +01:00
test script, and two themes
This commit is contained in:
commit
060f20d745
3 changed files with 93 additions and 0 deletions
32
colors.sh
Executable file
32
colors.sh
Executable file
|
|
@ -0,0 +1,32 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# This file echoes a bunch of color codes to the
|
||||||
|
# terminal to demonstrate what's available. Each
|
||||||
|
# line is the color code of one forground color,
|
||||||
|
# out of 17 (default + 16 escapes), followed by a
|
||||||
|
# test use of that color on all nine background
|
||||||
|
# colors (default + 8 escapes).
|
||||||
|
#
|
||||||
|
# Author: Giles Orr
|
||||||
|
# URL: http://gilesorr.com/bashprompt/howto/c350.html
|
||||||
|
# License: GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation;
|
||||||
|
# http://gilesorr.com/bashprompt/howto/a1004.html
|
||||||
|
|
||||||
|
|
||||||
|
T='gYw' # The test text
|
||||||
|
|
||||||
|
echo -e "\n 40m 41m 42m 43m\
|
||||||
|
44m 45m 46m 47m";
|
||||||
|
|
||||||
|
for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \
|
||||||
|
'1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \
|
||||||
|
' 36m' '1;36m' ' 37m' '1;37m';
|
||||||
|
do FG=${FGs// /}
|
||||||
|
echo -en " $FGs \033[$FG $T "
|
||||||
|
for BG in 40m 41m 42m 43m 44m 45m 46m 47m;
|
||||||
|
do echo -en "$EINS \033[$FG\033[$BG $T \033[0m";
|
||||||
|
done
|
||||||
|
echo;
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
|
||||||
45
solarized_dark
Normal file
45
solarized_dark
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
set_colors()
|
||||||
|
{
|
||||||
|
local base03="002b36"
|
||||||
|
local base02="073642"
|
||||||
|
local base01="586e75"
|
||||||
|
local base00="657b83"
|
||||||
|
local base0="839496"
|
||||||
|
local base1="93a1a1"
|
||||||
|
local base2="eee8d5"
|
||||||
|
local base3="fdf6e3"
|
||||||
|
local yellow="b58900"
|
||||||
|
local orange="cb4b16"
|
||||||
|
local red="dc322f"
|
||||||
|
local magenta="d33682"
|
||||||
|
local violet="6c71c4"
|
||||||
|
local blue="268bd2"
|
||||||
|
local cyan="2aa198"
|
||||||
|
local green="859900"
|
||||||
|
|
||||||
|
echo -en "\e]P0${base02}" #black
|
||||||
|
echo -en "\e]P8${base03}" #brblack
|
||||||
|
echo -en "\e]P1${red}" #red
|
||||||
|
echo -en "\e]P9${orange}" #brred
|
||||||
|
echo -en "\e]P2${green}" #green
|
||||||
|
echo -en "\e]PA${base01}" #brgreen
|
||||||
|
echo -en "\e]P3${yellow}" #yellow
|
||||||
|
echo -en "\e]PB${base00}" #bryellow
|
||||||
|
echo -en "\e]P4${blue}" #blue
|
||||||
|
echo -en "\e]PC${base0}" #brblue
|
||||||
|
echo -en "\e]P5${magenta}" #magenta
|
||||||
|
echo -en "\e]PD${violet}" #brmagenta
|
||||||
|
echo -en "\e]P6${cyan}" #cyan
|
||||||
|
echo -en "\e]PE${base1}" #brcyan
|
||||||
|
echo -en "\e]P7${base2}" #white
|
||||||
|
echo -en "\e]PF${base3}" #brwhite
|
||||||
|
clear #for background artifacting
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "$TERM" = "linux" ]; then
|
||||||
|
set_colors
|
||||||
|
fi
|
||||||
|
|
||||||
|
unset -f set_colors
|
||||||
|
|
||||||
|
# vim: set filetype=sh:
|
||||||
16
zenburn
Normal file
16
zenburn
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
echo -en "\e]P01e2320" # zenburn black (normal black)
|
||||||
|
echo -en "\e]P8709080" # bright-black (darkgrey)
|
||||||
|
echo -en "\e]P1705050" # red (darkred)
|
||||||
|
echo -en "\e]P9dca3a3" # bright-red (red)
|
||||||
|
echo -en "\e]P260b48a" # green (darkgreen)
|
||||||
|
echo -en "\e]PAc3bf9f" # bright-green (green)
|
||||||
|
echo -en "\e]P3dfaf8f" # yellow (brown)
|
||||||
|
echo -en "\e]PBf0dfaf" # bright-yellow (yellow)
|
||||||
|
echo -en "\e]P4506070" # blue (darkblue)
|
||||||
|
echo -en "\e]PC94bff3" # bright-blue (blue)
|
||||||
|
echo -en "\e]P5dc8cc3" # purple (darkmagenta)
|
||||||
|
echo -en "\e]PDec93d3" # bright-purple (magenta)
|
||||||
|
echo -en "\e]P68cd0d3" # cyan (darkcyan)
|
||||||
|
echo -en "\e]PE93e0e3" # bright-cyan (cyan)
|
||||||
|
echo -en "\e]P7dcdccc" # white (lightgrey)
|
||||||
|
echo -en "\e]PFffffff" # bright-white (white)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue