LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Xdefaults and Xresources (https://www.linuxquestions.org/questions/slackware-14/xdefaults-and-xresources-863643/)

guisome 02-18-2011 08:09 PM

Xdefaults and Xresources
 
I've loaded both with these configs:

Quote:

Xterm*background :white
Xterm*foreground :blue
rxvt inheritPixmp :true
rxvt*foreground :black
But neither of them are loading, it actually did loaded yesterday, but when I closed it, it didn't load again, I first tried with Xresouces and then with Xdefaults and none of them are working. Any clues?

dive 02-18-2011 09:18 PM

The filenames should be .Xdefaults and .Xresources (note the dots)
After changing a file you can load it with:

xrdb -load .Xdefaults

By the way you don't need to use both. One is usually ok.

guisome 02-19-2011 07:22 AM

I'm using only one and none of them work.

dive 02-19-2011 07:38 AM

rxvt inheritPixmp :true

is wrong anyway I think. There should be either a . or * after rxvt. Does

xrdb -load .Xdefaults give any errors?

jmccue 02-19-2011 08:06 AM

Hi,

dive is correct

Also a miss-spell -- inheritPixmap instead of inheritPixmp (missing 'a').
happens to me all the time :)

I have 'Rxvt*inheritPixmap: true' and it works for me.

John

guisome 02-19-2011 11:58 AM

Edit:

I guess that config files needs more informations or something like that, I got a sample .Xdefaults (link), edited it and it worked.

Hmm, .Xdefaults is not starting along with X so I have to load it with xrdb -load .Xdefaults, how to auto load it?

Thanks for the help!

dive 02-19-2011 01:49 PM

It should get loaded automatically. If it isn't - and I can't see why unless the filename is wrong or it's in the wrong dir, you can add the xrdb command to your desktop startup file.

Which desktop?

guisome 02-19-2011 03:20 PM

Hi dive,

It's KDE, it actually loads, but the colour doesn't.

.Xdefaults
Quote:

xterm*Foreground: blue
xterm*Background: white

xterm*ScrollBar: on
xterm*TitleBar: on
xterm*TextUnderIcon: on
xterm*Al lowIconInput: on
xterm*AutoRaise: on
xterm*termtype: vt100

dive 02-19-2011 04:30 PM

Hmm all looks good to me. Is that all that's in your .Xdefaults and .Xresources?

guisome 02-19-2011 05:19 PM

Hi,


It's in .Xdefaults, I don't know either why it's not working with the colours, but it's ok even though I've to load it, thanks for helping.

rmjohnso 02-19-2011 05:52 PM

I use rxvt-unicode, and in my .Xdefaults and .Xresources files, I have everything beginning with *URxvt. Are you sure you shouldn't have *Rxvt instead of *rxvt?

harryhaller 02-19-2011 06:32 PM

Quote:

Originally Posted by rmjohnso (Post 4264273)
I use rxvt-unicode, and in my .Xdefaults and .Xresources files, I have everything beginning with *URxvt. Are you sure you shouldn't have *Rxvt instead of *rxvt?

Type
Code:

xprop WM_CLASS
and then left click on your terminal to get the WM_CLASS.


All times are GMT -5. The time now is 05:29 AM.