You are not logged in.

#1 2008-08-03 23:40:36

COMMUNISTCHINA
Member
Registered: 2008-06-16
Posts: 122
Website

.Xdefaults

In my .Xdefaults, I have the following:

urxvt*background: #111111
urxvt*foreground: #babdb6

And then after that, I redefine the other colors like

*color0: 000000

And so on...

When I bring up urxvt with a keyboard shortcut (set to 'exec urxvt'), I get a different set of colors than if I access it through a menu. Both are set to execute urxvt, no extra arguments anywhere, but the menu is the one that gives me the proper colors.

The question is, why is it doing this?


i don't know you that well.

Offline

#2 2008-08-04 05:59:30

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: .Xdefaults

Hi,
try to rename .Xdefaults to .Xdefaults-<hostname>
(mine is .Xdefaults-mobilebox)

Offline

#3 2008-08-04 08:02:56

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: .Xdefaults

luca wrote:

Hi,
try to rename .Xdefaults to .Xdefaults-<hostname>
(mine is .Xdefaults-mobilebox)

I don't think that'll do the trick.

My guess is that it has nothing to do with the .Xdefaults file itself.  It is likely to do with how you are executing urxvt.  What menu are you referring to and what is the exact statement that's executing urxvt. What desktop environment (or window manager) are you using to manage the keyboard shortcut and what is the exact statement of the shortcut?


thayer williams ~ cinderwick.ca

Offline

#4 2008-08-04 11:40:44

COMMUNISTCHINA
Member
Registered: 2008-06-16
Posts: 122
Website

Re: .Xdefaults

thayer wrote:
luca wrote:

Hi,
try to rename .Xdefaults to .Xdefaults-<hostname>
(mine is .Xdefaults-mobilebox)

I don't think that'll do the trick.

My guess is that it has nothing to do with the .Xdefaults file itself.  It is likely to do with how you are executing urxvt.  What menu are you referring to and what is the exact statement that's executing urxvt. What desktop environment (or window manager) are you using to manage the keyboard shortcut and what is the exact statement of the shortcut?

awesomewm, from the /.awesome/menu
From the .awesomerc:
"exec urxvt"
then from the menu: "urxvt"


i don't know you that well.

Offline

#5 2008-08-26 22:15:40

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: .Xdefaults

I had lots of trouble with urxvt colors until I included 'urxvt*termName: rxvt' in my .Xdefaults file. My situation was different but it may help.

Offline

#6 2008-08-27 08:57:28

delor
Member
From: Poland
Registered: 2008-02-02
Posts: 62
Website

Re: .Xdefaults

Offline

#7 2008-08-27 13:33:27

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: .Xdefaults

Change "urxvt*blah" to "URxvt*blah" in your config. I forget why exactly this works; something like resource name vs some window property or something.

Offline

#8 2008-09-12 22:22:47

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: .Xdefaults

Hello,

I am having a problem with my .Xdefaults file. Suddenly, it started to be completely transparent and I can't change it. I have tried everything I know. Here's my .Xdefaults file:

Xft.antialias:            true

URxvt*termName: rxvt
URxvt*scrollBar: false
URxvt*transparent:        no
URxvt*urlLauncher: firefox
URxvt*background: #222222
URxvt*foreground: #ffffff
URxvt*perl-ext-common: default,tabbed 
urxvt*color0:      #000000
urxvt*color1:      #9e1828
urxvt*color2:      #aece92
urxvt*color3:      #968a38
urxvt*color4:      #414171
urxvt*color5:      #963c59
urxvt*color6:      #418179
urxvt*color7:      #bebebe
urxvt*color8:      #666666
urxvt*color9:      #cf6171
urxvt*color10:     #c5f779
urxvt*color11:     #fff796
urxvt*color12:     #4186be
urxvt*color13:     #cf9ebe
urxvt*color14:     #71bebe
urxvt*color15:     #ffffff
urxvt*fading:    0
urxvt*shading:    100
urxvt*tintColor: #ffffff
urxvt*inheritPixmap: True
urxvt*font: xft:Monospace:pixelsize=11
urxvt*boldFont: xft:Monospace:pixelsize=11

What might be wrong?

Last edited by vjoe (2008-09-12 22:23:39)

Offline

#9 2008-09-12 23:20:44

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: .Xdefaults

The resource inheritPixmap is the culprit...

Offline

#10 2008-09-13 00:06:30

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: .Xdefaults

Thank you! But why are there two transparency variables?

Oh and by the way, should "transparent" means that it shows the window underneath? It only shows the desktop wallpaper.

Last edited by vjoe (2008-09-13 00:06:52)

Offline

#11 2008-09-13 00:52:23

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: .Xdefaults

The inheritPixmap resource was deprecated in favor of transparency, but still supported for compatibility.

urxvt supports true transparency with composite, as well as pseudo-transparency which just shows the background image. If you search the forums you should be able find instructions on getting true transparency (it is a little hard to grasp from just the man page, but not that hard when you see an example .Xdefaults file).

Offline

#12 2008-09-13 11:52:12

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: .Xdefaults

So I would need a composite manager such as xcompmgr right?

Offline

#13 2008-09-13 14:53:50

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: .Xdefaults

Yeah, xcompmgr or a window manager with a composite extension (compiz, metacity, kwin, and xfwm are the ones I can think of off the top of my head). Here, these are the relevant settings from my .Xdefaults file. It should put you on the right track:

urxvtTrans*depth:       32
urxvtTrans*background:  rgba:0000/0000/0000/dddd
urxvtTrans*tintColor:   grey

Offline

#14 2008-09-13 17:08:50

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: .Xdefaults

Thanks.

By the way, the tabs perl extension is not allowing me to type characters with accents. For instance, "é" shows as "e". Other characters such as "~" doesn't even appear. What might be wrong?

Offline

#15 2008-09-13 17:24:02

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: .Xdefaults

I've never used urxvt's tabs before, sorry. No idea what the problem is.

Offline

#16 2008-09-13 18:35:11

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: .Xdefaults

It's actually very strange because after creating a tab, the problem disappears. It's probably a bug.

Last edited by vjoe (2008-09-13 18:35:27)

Offline

#17 2008-11-13 17:16:24

alexmatos
Member
From: Rio de Janeiro, Brasil
Registered: 2007-08-06
Posts: 124

Re: .Xdefaults

vjoe wrote:

It's actually very strange because after creating a tab, the problem disappears. It's probably a bug.

I have the same problem, but it's not solved bt creating a new tab. Any ideas?

Offline

Board footer

Powered by FluxBB