Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have colors defined in .Xresources. They look lovely on urxvt, and utterly ghastly on Calibre.

Calibre does not appear to have any way to disable or override those colors, so is there any way I can invoke Calibre that would ignore my color scheme?

share|improve this question
up vote 9 down vote accepted

The string in Xresources usually looks like this:

 name.Class.resource: value

Looks like you use * in place of name and class:

*color0: black

Which means you apply color to everything.

If you want apply colors to urxvt only:

URxvt*color0: black
share|improve this answer
You nailed it! Thanks! – Trevor Bramble Oct 9 '12 at 7:27

Although being more specific in your .Xresources file can solve the problem, it's not the perfect workaround if you really do intend to use wildcard selectors.

Another workaround is to unload your .Xresources file before launching calibre, and reload it afterwards:

xrdb -remove ~/.Xresources && calibre & sleep 5; xrdb -load ~/.Xresources
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.