Autore: dvalin Data: To: dng Nuovi argomenti: [DNG] uxterm colors Oggetto: Re: [DNG] uxterm colors: was Steve's Gnome usage poll [Was: Re:
Gnome - Introducing stronger dependencies on systemd
On 25.06.25 20:29, Steve Litt wrote:
> Erik Christiansen via Dng said on Wed, 25 Jun 2025 01:55:09 +0000 > >colours='-fg yellow -bg darkslategrey -cr red'; > >uxterm $colours -sb -rightbar -geometry 100x50+300+10 -bc +vb & > > I wish you'd told me this 25 years ago, but today is the second best > time :-). Now here's a tough one that I haven't been able to find an > answer to: How do I set -bg to an rgb value in the uxterm command > itself, or a shellscript that calls the command?
Dunno how to faff directly with raw hex rgb values on the commandline,
as I've just picked the nearest handy named colour in rgb.txt, which
wanders about a bit between distros. For a custom rgb colour,
I'd just add a new line to the file:
rrr ggg bbb<tab><tab>Erik_the_Red
(Not tried, but oughta work.)
Here I have:
$ locate rgb.txt
/etc/X11/rgb.txt
/usr/share/X11/rgb.txt
/usr/share/vim/vim81/rgb.txt
and:
$ diff /etc/X11/rgb.txt /usr/share/X11/rgb.txt
$
so peruse either for xterm colours:
$ uxterm -fg yellow -bg darkslategrey -cr red
Apropos cursor colour, red is easier to spot on the screen, but I
currently have editor mode-indicating dynamic colouring in .vimrc: