Persisting xrdb settings

Sep 18, 2022 Last reply: 3 years ago 1 Replies

Hello, all



I am one of the strange guys who try invent their own



16-color ANSI palette that will be better than all the rest. In the middle of my first experiment I was frustrated by the difficulty peristing the cusom colors throught system start- up:


  1. I duly saved my palette under ~/.Xresouces, and



  1. merged it: xrdb -merge .Xresource

Now, when I restart xterm the new colors are put in effect, but after system restart they are gone again. Must I manually load them at startup from ~/.profile? The `xrdb' man page says the file name depends on the desktop environment:



Xrdb does not load any files on its own, but many desktop environments use xrdb to load ~/.Xresources files on session startup to initialize the resource database, as a generalized replacement for ~/.Xdefaults files.



Does the Raspbian LXDE use some non-standard file?


~/.xinitrc or ~/.xsession are the normal places for things like this because .profile gets loaded in every shell (including ones without access to an X server) whereas .xinitrc gets loaded once by startx and .xsession gets loaded once by the display manager.

It is possible that some display managers don't follow this standard - I haven't used one in decades, I like a text login and startx.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required