You are not logged in.

#1 2009-01-21 23:45:14

jey
Member
Registered: 2009-01-01
Posts: 20

~/.Xdefaults and inheritance

I have some stuff in my .Xdefaults like 'urxvt*' etc.
I want to use a named terminal, but it doesnt inerit the urxvt lines in Xdefaults, how can I make it so that when I do urxvt -name NAME, it will inherit the urxvt* settings?

Offline

#2 2009-01-21 23:53:28

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: ~/.Xdefaults and inheritance

If it won't interfere with any other terminal that you're using, you could simply remove urxvt from the line. For instance, urxvt*background will become *background.

Offline

#3 2009-01-22 00:05:14

jey
Member
Registered: 2009-01-01
Posts: 20

Re: ~/.Xdefaults and inheritance

Ah thanks, that worked a treat!

Offline

#4 2009-01-22 04:08:51

damjan
Member
Registered: 2006-05-30
Posts: 452

Re: ~/.Xdefaults and inheritance

afaik , if you use 'URxvt.font' (note the case) it should work.
Thats the window class and not the name.

Offline

#5 2009-01-22 05:28:04

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: ~/.Xdefaults and inheritance

damjan wrote:

afaik , if you use 'URxvt.font' (note the case) it should work.
Thats the window class and not the name.

That's really cool. I didn't know this one.

Offline

#6 2009-01-22 21:27:40

Square
Member
Registered: 2008-06-11
Posts: 435

Re: ~/.Xdefaults and inheritance

IIRC you can also have specific Xdefaults based on window names smile
So, if you want to have certain colors only for irssi, you can make an Xdefaults using any name you want...

i.e.

irssiterm.color1:
irssiterm.color2:
...

Then just start up a terminal named irssiterm (case important!), and then run irssi!

Last edited by Square (2009-01-22 21:31:42)


 

Offline

Board footer

Powered by FluxBB