You are not logged in.

#1 2007-08-20 04:52:10

haole
Member
Registered: 2006-08-16
Posts: 17

[solved] [stupid] .Xdefaults not working!

Hey there,

I have always used ~/.Xdefaults to configure my XTerm colors. However, on my new Arch Linux Don't Panic installation, this resource doesn't seem to work. XTerm ignores it.

Does anybody have a clue about this? Has anything changed since others releases about this?

~/.Xdefaults

XTerm*foregroud: white
XTerm*backgroud: black

Last edited by haole (2007-08-21 04:59:26)

Offline

#2 2007-08-20 05:32:31

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [solved] [stupid] .Xdefaults not working!

In my .Xdefaults I have it in lower case and it works:
xterm*background: black
xterm*foreground: white

Offline

#3 2007-08-20 06:11:22

PenguinFlavored
Member
From: Chicago, IL, USA
Registered: 2006-06-06
Posts: 66
Website

Re: [solved] [stupid] .Xdefaults not working!

try manually updating the X resource database by

xrdb ~/.Xdefaults

does that fix it? If so, put that line in your .xinitrc file.

Offline

#4 2007-08-20 16:24:53

haole
Member
Registered: 2006-08-16
Posts: 17

Re: [solved] [stupid] .Xdefaults not working!

Didn't work... sad

Any new ideas?

Offline

#5 2007-08-20 16:41:35

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: [solved] [stupid] .Xdefaults not working!

You're not editing root's ~/.Xdefaults and running xterm as user, right?


I am a gated community.

Offline

#6 2007-08-20 18:36:03

haole
Member
Registered: 2006-08-16
Posts: 17

Re: [solved] [stupid] .Xdefaults not working!

No, I'm editing my user's .Xdefaults...

It seems like Xorg is just missing my configuration file.

Any new ideas? sad

Offline

#7 2007-08-20 19:07:34

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [solved] [stupid] .Xdefaults not working!

Did you try PenguinFlavored's suggestion of using xrdb?

Offline

#8 2007-08-20 19:08:23

haole
Member
Registered: 2006-08-16
Posts: 17

Re: [solved] [stupid] .Xdefaults not working!

Yeah... I apply that command, open a XTerm section by the same terminal that I used to input the command and nothing happens.

yikes

Offline

#9 2007-08-20 20:56:12

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

Re: [solved] [stupid] .Xdefaults not working!

xrdb -load ~/.Xdefaults

Offline

#10 2007-08-20 21:08:33

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: [solved] [stupid] .Xdefaults not working!

XTerm*foregroud: white
XTerm*backgroud: black

Perhaps you should try spelling it foreground and background.

Offline

#11 2007-08-20 21:15:22

harlekin
Member
From: Germany
Registered: 2006-07-13
Posts: 408

Re: [solved] [stupid] .Xdefaults not working!

lol big_smile


Hail to the thief!

Offline

#12 2007-08-21 03:42:16

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [solved] [stupid] .Xdefaults not working!

Ashren wrote:

XTerm*foregroud: white
XTerm*backgroud: black

Perhaps you should try spelling it foreground and background.

omg - I totally missed that - good eye

Offline

#13 2007-08-21 04:58:36

haole
Member
Registered: 2006-08-16
Posts: 17

Re: [solved] [stupid] .Xdefaults not working!

LOL big_smile

At least I didn't miss it alone! cool

Offline

#14 2007-08-21 08:12:21

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [solved] [stupid] .Xdefaults not working!

I can't believe how many of us missed that.
Now that I look at it, that "groud" is jumping into my eyes.

Maybe because we're all used to have various problems with Xdefaults, but not a stupid spelling one wink


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#15 2007-08-21 19:14:42

haole
Member
Registered: 2006-08-16
Posts: 17

Re: [solved] [stupid] .Xdefaults not working!

By the way, it worked now!

Weird, huh? wink

Offline

#16 2013-10-17 14:55:16

holms
Member
Registered: 2013-10-17
Posts: 1

Re: [solved] [stupid] .Xdefaults not working!

I'm only registered to feedback on this topic:

xrdb -load ~/.Xdefaults

fixed this for me, I don't know why but after fresh debian install, when i start dwm with startx, .Xdefaults is being ignored. only that command helps. put it to .xinitrc

Offline

#17 2013-10-17 15:43:28

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [solved] [stupid] .Xdefaults not working!

holms wrote:

xrdb -load ~/.Xdefaults

when i start dwm with startx, .Xdefaults is being ignored. only that command helps. put it to .xinitrc

That's how it works these days, i.e. you need you load .Xdefaults manually with xrdb

Offline

#18 2013-10-17 15:50:47

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] [stupid] .Xdefaults not working!

I am pretty sure that the .Xresources file is considered the new standard way of handling things.  I have read that the .Xdefaults file is deprecated, but I am not willing to back that statement up since I've only seen this comment from other users.  Since you have to use xrdb anyway now, I guess it really doesn't matter and you could potentially call it whatever you want.  But here is a thread on the topic from Feb of this year.

Offline

#19 2013-10-17 15:56:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] [stupid] .Xdefaults not working!

Guys, https://bbs.archlinux.org/viewtopic.php … 90#p274690 already gave the answer, the thread has been marked as solved for years, there's no need to bump it.

WonderWoofy wrote:

I am pretty sure that the .Xresources file is considered the new standard way of handling things.

This is true, but see the note https://wiki.archlinux.org/index.php/X_ … Xresources

Last edited by karol (2013-10-17 16:02:25)

Offline

#20 2013-10-17 16:21:48

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,794

Re: [solved] [stupid] .Xdefaults not working!


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

Board footer

Powered by FluxBB