By default, on Ubuntu, rxvt terminal is black on white. How do I change it to white on black?
I'm running Lubuntu 16.04 LTS
By default, on Ubuntu, rxvt terminal is black on white. How do I change it to white on black?
I'm running Lubuntu 16.04 LTS
Note: Updated answer to include desktops like GNOME and LXDE that do not load
.Xresources
or.Xdefault
files by default. Also updated for packagesrxvt-unicode
andrxvt
differences.You can launch it with the command in a terminal window:
which sets the foreground to white and the background to black.
Or you can launch it using Alt+F2 and typing it in:
Either way listed above should give you a
rxvt
terminal that looks like this:To make it permanent, you can add the following lines to the end of your
~/.Xdefaults
or~/.Xresources
file:Very important:
If you installed
rxvt-unicode
add these lines to your.Xresources
file:If you installed just
rxvt
add these lines:URxvt can support more fonts.
If you wanted to use a
Monospace 9
font withurxvt
, add a line like this:Or you can use
fc-list | sort
to list all fonts available, then you can find one you want and set it like this:Rxvt has limited font support.
If you run the command
xlsfonts
from a terminal window, it shows you all the fonts that can be loaded byrxvt
instead ofurxvt
. Here is some examples:The list will look something like this (truncating for space):
Or you can find a font you want using
xfontsel
and select all the settings you want and it will create the line you add like this:You will just have to play around till you find one you like.
Add that line to your
.Xresources
file.Anytime you
.Xdefaults
or.Xresources
file(s), reload them with the following command(s) from a terminal window (requires restart ofrxvt
terminal if you are using it):or
Note: If you have a desktop like
LXDE
installed, these files do not load by default, but if you create~/.xinitrc
with using which ever file you want as either.Xresources
(recommended) or.Xdefaults
and add the following line to the file:Then make the
.xinitrc
executable:Reboot, then all you have to do is launch
rxvt
as normal.Screenshot from LXDE VM
Hope this helps!