You are not logged in.

#1 2013-08-08 08:53:09

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Changing colours in rxvt for specific application

Was wondering if there is a way to override .Xdefaults for a specific application (mutt specifically)?  Is there a way to load a seperate colour config file for a one off terminal window?

Offline

#2 2013-08-08 10:15:33

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Changing colours in rxvt for specific application

Yes, there is a way to make one-off terminal windows.  One of the easiest is to simply change the 'name' resource of the terminal.  In this example I have my xterm's normal background color set to a nearly black color and the alternate background set to a dark green.

! X resource file example
! Normal background
XTerm*background: rgb:08/08/08
! Alternate background
green*background: rgb:08/16/08

The normal background is called with the command 'xterm'.  If I want to change to the alternate background, I use this command:

$ xterm -name green

Play with and read about the difference between instances and classes in X resources.  You can also set many X resources for most Xlib programs from the command line.  You'll have to RTFM.

Edit: The example code works when you substitute 'URxvt' or 'Rxvt' for the 'XTerm' class when using rxvt-unicode.

Last edited by thisoldman (2013-08-08 10:25:19)

Offline

#3 2013-08-08 10:22:24

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Re: Changing colours in rxvt for specific application

Thanks for the information smile

Offline

#4 2013-08-08 11:30:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,549
Website

Re: Changing colours in rxvt for specific application

You can use 256 color codes in mutt's config ... so why not make the adjustment there?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2013-08-08 11:33:56

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Re: Changing colours in rxvt for specific application

@Trilby: That's a very good point, I didn't think of that.

Offline

Board footer

Powered by FluxBB