You can also quite easily change that navy blue into any kind of blue with setvtrgb
. The --help
option explains:
FILE should be exactly 3 lines of comma-separated decimal values for
RED, GREEN, and BLUE.
To seed a valid FILE: cat
/sys/module/vt/parameters/default_{red,grn,blu} > FILE
and then edit the values in FILE.
Here is what that three-line-file can look like:
000, 250,120,200, 64,190, 50, 170,85, 240, 85,220, 80,232, 55, 220
000, 100,186,140,128,120,190, 170,85, 60,211,210,150, 85,222, 220
000, 40,120, 20,200,190,160, 170,85, 30, 85, 80,255,212,222, 220
You can not have comments, but whitespace is OK. It helps!
You read the RGB values top to bottom. The 16 colors run from left to right.
Blue is (64,128,200). Bold blue is (80,150,255). Original Navy blue was something like (0,0,225). I just added green and a bit red.
And here is how I define (and export!) LS_COLORS. (dircolors -p
to look up the codes.).
LS_COLORS="fi=01;37:di=01;34:ex=01;32:ln=37\
:or=01;30:mi=00:mh=31\
:pi=33:so=43;30:do=35\
:bd=35;01:cd=35\
:su=37;41:sg=30;43:ca=30;41\
:tw=07;34:ow=30;44:st=30;44"
export LS_COLORS
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white