[Solved] URxvt and .Xresources

Forum rules
We don't support installations in VirtualBox, VMWare, qemu or others. We ignore posts about WINE, PlayOnLinux, Steam and Skype. We don't support btrfs, lvm, UEFI, side-by-side installations with GPT or dualboot with anything newer than Windows XP.
Google your problem first. Check the Wiki. Read the existing threads. It's okay to "hijack" an existing thread, yes! If your problem is not yet covered, open a new thread. To get the quickest possible help, mention the exact release codename in your post (uname -a is a good idea, too). Due to the lack of crystal balls, attach the output of lspci -nnk if you encounter hardware problems.
martibs
Virgin
Posts: 5
Joined: Sat Jan 19, 2013 4:14 pm

[Solved] URxvt and .Xresources

Unread post by martibs » Sat Jan 19, 2013 4:18 pm

Hi, I'm using urxvt as my terminal emulator. and trying to make some changes to its appearance. LinuxBBQ comes with a default ̃~/.Xresources which I edit and save, then run xrdb -merge ~/.Xresources, and fire up a new urxvt window. However, none of the changes are applied. I've also tried stopping X completely, logging out of TTY and back in again, starting X anew. Still no changes appear in my terminal emulator. What am I missing here?
Last edited by martibs on Sun Jan 20, 2013 8:43 pm, edited 2 times in total.

User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

Re: URxvt and .Xresources

Unread post by ivanovnegro » Sat Jan 19, 2013 4:51 pm

Welcome to the BBQ!

Maybe post your Xresources here.

martibs
Virgin
Posts: 5
Joined: Sat Jan 19, 2013 4:14 pm

Re: URxvt and .Xresources

Unread post by martibs » Sat Jan 19, 2013 6:20 pm

Thank you :)

I realize now that some settings are duplicates (I've not added any, just modified existing ones), but cursor blink-setting is not, and the cursor is not blinking...

Code: Select all

URxvt*font: 	-*-terminus-medium-*-*-*-16-*-*-*-*-*-*-*
URxvt*boldFont:	-*-terminus-medium-*-*-*-16-*-*-*-*-*-*-*

!URxvt.font:		-misc-fixed-*-r-*-*-15-*-*-*-*-*-*-*
!URxvt.boldFont:	-misc-fixed-*-r-*-*-15-*-*-*-*-*-*-*

Urxvt*iconPixmap:/usr/share/pixmaps/openbox.xbm
Urxvt*iconMask: /usr/share/pixmaps/openbox.xbm

URxvt*background:       #000000
URxvt*foreground:       #EEEEEE
URxvt*scrollBar:        false
URxvt*secondaryscroll:  true
URxvt*matcher.button:   1
URxvt*colorBD:          #268bd2
URxvt*colorUL:          #859900
URxvt*cursorBlink:      true

URxvt.selection.pattern-0: ([[:word:]]+)

URxvt*transparent:      true
URxvt*shading: 		150
URxvt*geometry: 	77x23

URxvt*allow_bold:       false

Xft*dpi:                96
Xft*antialias:          true
Xft*hinting:            full 

URxvt*dynamicColors:    on
URxvt*depth:            24

URxvt*mapAlert:         true
URxvt*visualBell:       true
URxvt*urgentOnBell:     true

xterm*font: 	-*-terminus-medium-*-*-*-16-*-*-*-*-*-*-*
xterm*boldFont:	-*-terminus-medium-*-*-*-16-*-*-*-*-*-*-*

xterm*background:       #000000
xterm*foreground:       #EEEEEE

!black
*color0:    #000000
*color8:    #888888
!red
*color1:    #CC5555
*color9:    #FF8888
!green
*color2:    #66BB88
*color10:   #99EEBB
!yellow
*color3:    #CC8855
*color11:   #FFBB88
!blue
*color4:    #6688BB
*color12:   #99BBEE
!magenta
*color5:    #CC5588
*color13:   #FF88BB
!cyan
*color6:    #66BBBB
*color14:   #99EEEE
!white
*color7:    #BBBBBB
*color15:   #EEEEEE



URxvt.transparent:   true
URxvt.tintColor:     black
URxvt.shading:       18 
 
URxvt*color0:      #000000
!rotten baby:
URxvt*color1:		#F5BBC4
!bam-boo
URxvt*color2:      #A6BBA7
!urine
URxvt*color3:      #345C2D
!spinach:
URxvt*color4:		#5C7972
URxvt*color5:      #963c59
!doublemint:
URxvt*color6:      #83ACA7
!greyground
URxvt*color7:     #C2C7CB
!violeNt:
URxvt*color8:		#537391
!mor0n
URxvt*color9:      #FCA5E7
!bamboo2
URxvt*color10:     #B0D1AF
URxvt*color11:     #fff796
!dunhill emp:
URxvt*color12:		#CFDFEB
URxvt*color13:     #cf9ebe
!ob_extra
URxvt*color14:     #B0CFCF
URxvt*color15:     #ffffff

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: URxvt and .Xresources

Unread post by rhowaldt » Sat Jan 19, 2013 6:32 pm

not sure where the problem is, but have you tried using ~/.Xdefaults instead? i can never remember which of the two i have to use, so often just have them both be duplicates of eachother. worth a try :)
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: URxvt and .Xresources

Unread post by machinebacon » Sat Jan 19, 2013 6:47 pm

.Xdefaults for xterm, .Xresources for rxvt

The default is a mix for both terminals, so you can comment the xterm entries.

1) Sure it's the rxvt you're running, and not xterm?
2) Take it easy and copy/paste one of these: http://crunchbang.org/forums/viewtopic.php?id=9935
..gnutella..

User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

Re: URxvt and .Xresources

Unread post by ivanovnegro » Sat Jan 19, 2013 7:27 pm

I only use and used .Xdefaults with urxvt.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: URxvt and .Xresources

Unread post by machinebacon » Sat Jan 19, 2013 7:39 pm

@OP: It's just that xterm doesn't read the Urvxt* entries

https://wiki.archlinux.org/index.php/X_resources
..gnutella..

martibs
Virgin
Posts: 5
Joined: Sat Jan 19, 2013 4:14 pm

Re: URxvt and .Xresources

Unread post by martibs » Sat Jan 19, 2013 9:44 pm

@machinebacon:
$ ls -l /etc/alternatives/x-terminal-emulator
lrwxrwxrwx 1 root root 14 Jan 19 16:10 /etc/alternatives/x-terminal-emulator -> /usr/bin/urxvt

I swiched to the Xresources from the Crunchbang-forums, and the changes took place. However I still can't make transparancy work. I won't need true transparancy.

The transparancy lines:

Code: Select all

!urxvt transparancy:

URxvt*transparent:      true
URxvt*shading: 		20

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: URxvt and .Xresources

Unread post by rhowaldt » Sat Jan 19, 2013 11:40 pm

could be there was a mistake in your Xresources then. dunno about transparency, sorry.
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

Re: URxvt and .Xresources

Unread post by ivanovnegro » Sat Jan 19, 2013 11:49 pm

martibs wrote: I swiched to the Xresources from the Crunchbang-forums, and the changes took place. However I still can't make transparancy work. I won't need true transparancy.

The transparancy lines:

Code: Select all

!urxvt transparancy:

URxvt*transparent:      true
URxvt*shading: 		20
Maybe it helps, though I never tried transparency:

https://wiki.archlinux.org/index.php/Rx ... ansparency

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: URxvt and .Xresources

Unread post by dkeg » Sun Jan 20, 2013 2:23 am

your transparency code is fine and should work. Generally what I have found is that if there is an error in your .Xresources file, but it still 'merges' okay without any errors, the change will not take effect. When I attempt to open a new instance, nothing will open. Back on topic though, your issue is transparency. You have duplicated your transparent and shading code. Comment out the below line and you transparency will work

Code: Select all

URxvt*tintColor: black
Nice colors btw

Work hard; Complain less

martibs
Virgin
Posts: 5
Joined: Sat Jan 19, 2013 4:14 pm

Re: URxvt and .Xresources

Unread post by martibs » Sun Jan 20, 2013 10:44 am

That line is not in the Xresources I copied. Could it be the way the wallpaper is set that breaks transparancy? I use nitrogen.

My current Xresources:

Code: Select all

Xcursor.theme:    DMZ-White

!urxvt color scheme:

URxvt*background: #2B2B2B
URxvt*foreground: #DEDEDE

URxvt*colorUL: #86a2b0

! black
URxvt*color0  : #2E3436
URxvt*color8  : #555753
! red
URxvt*color1  : #CC0000
URxvt*color9  : #EF2929
! green
URxvt*color2  : #4E9A06
URxvt*color10 : #8AE234
! yellow
URxvt*color3  : #C4A000
URxvt*color11 : #FCE94F
! blue
URxvt*color4  : #3465A4
URxvt*color12 : #729FCF
! magenta
URxvt*color5  : #75507B
URxvt*color13 : #AD7FA8
! cyan
URxvt*color6  : #06989A
URxvt*color14 : #34E2E2
! white
URxvt*color7  : #D3D7CF
URxvt*color15 : #EEEEEC

!urxvt fonts: 

URxvt*font: xft:Inconsolata:pixelsize=13
URxvt*boldFont: xft:Inconsolata:bold:pixelsize=13

!urxvt transparancy:

URxvt*transparent:      true
URxvt*shading: 		50
URxvt*geometry: 	80x48

!urxvt extensions:

!URxvt.perl-ext-common:  default,matcher,tabbedex

!enabling clickable links:

URxvt.urlLauncher:      /usr/bin/iceweasel
URxvt.matcher.button:   1 

!urxvt scrolling options and cursor style:

URxvt*saveLines: 12000
URxvt*scrollstyle:plain
URxvt*scrollBar: false
URxvt*cursorBlink: false
URxvt*cursorUnderline: false

! urxvt tabs settings:

URxvt.tabbed.tabbar-fg: 2
URxvt.tabbed.tabbar-bg: 0
URxvt.tabbed.tab-fg: 2
URxvt.tabbed.tab-bg: 8
URxvt.tabbed.autohide:  yes
URxvt.tabbed.new-button:  no
URxvt.tabbed.title: no

! urxvt icon:
URxvt.iconFile: /usr/share/icons/gnome/16x16/apps/gnome-terminal.png

! urxvt bell:
URxvt*visualBell:       false
URxvt*urgentOnBell:     false

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: URxvt and .Xresources

Unread post by machinebacon » Sun Jan 20, 2013 11:45 am

It seems you use fake transparency only - how about setting the wallpaper with feh (or esetroot/xsetroot/hsetroot)?

Is this an Openbox/WM-only setup?
..gnutella..

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: URxvt and .Xresources

Unread post by dkeg » Sun Jan 20, 2013 1:34 pm

ok, I used the code from the beginning of the thread. I just popped your code in for my .Xresources and it worked as intended. Transparency was there. I use feh. I switched my wallpaper using nitrogen and it broke transparency. I have used nitrogen before with transparency working so it is not specific with nitrogen, just seems nitrogen doesn't like something in the code. Can you paste in the adjusted code from earlier in the post into your .Xresources file just to check if it works.

Code: Select all

URxvt*font:    -*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*
URxvt*boldFont:   -*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*

!URxvt.font:      -misc-fixed-*-r-*-*-15-*-*-*-*-*-*-*
!URxvt.boldFont:   -misc-fixed-*-r-*-*-15-*-*-*-*-*-*-*

Urxvt*iconPixmap:/usr/share/pixmaps/openbox.xbm
Urxvt*iconMask: /usr/share/pixmaps/openbox.xbm

URxvt*background:       #000000
URxvt*foreground:       #EEEEEE
URxvt*scrollBar:        false
URxvt*secondaryscroll:  true
URxvt*matcher.button:   1
URxvt*colorBD:          #268bd2
URxvt*colorUL:          #859900
URxvt*cursorBlink:      true

URxvt.selection.pattern-0: ([[:word:]]+)

URxvt*transparent:      true
URxvt*shading:       150
URxvt*geometry:    77x23

URxvt*allow_bold:       false

Xft*dpi:                96
Xft*antialias:          true
Xft*hinting:            full

URxvt*dynamicColors:    on
URxvt*depth:            24

URxvt*mapAlert:         true
URxvt*visualBell:       true
URxvt*urgentOnBell:     true

xterm*font:    -*-terminus-medium-*-*-*-16-*-*-*-*-*-*-*
xterm*boldFont:   -*-terminus-medium-*-*-*-16-*-*-*-*-*-*-*

xterm*background:       #000000
xterm*foreground:       #EEEEEE

!black
*color0:    #000000
*color8:    #888888
!red
*color1:    #CC5555
*color9:    #FF8888
!green
*color2:    #66BB88
*color10:   #99EEBB
!yellow
*color3:    #CC8855
*color11:   #FFBB88
!blue
*color4:    #6688BB
*color12:   #99BBEE
!magenta
*color5:    #CC5588
*color13:   #FF88BB
!cyan
*color6:    #66BBBB
*color14:   #99EEEE
!white
*color7:    #BBBBBB
*color15:   #EEEEEE



URxvt.transparent:   true
!URxvt.tintColor:     black
URxvt.shading:       18
 
URxvt*color0:      #000000
!rotten baby:
URxvt*color1:      #F5BBC4
!bam-boo
URxvt*color2:      #A6BBA7
!urine
URxvt*color3:      #345C2D
!spinach:
URxvt*color4:      #5C7972
URxvt*color5:      #963c59
!doublemint:
URxvt*color6:      #83ACA7
!greyground
URxvt*color7:     #C2C7CB
!violeNt:
URxvt*color8:      #537391
!mor0n
URxvt*color9:      #FCA5E7
!bamboo2
URxvt*color10:     #B0D1AF
URxvt*color11:     #fff796
!dunhill emp:
URxvt*color12:      #CFDFEB
URxvt*color13:     #cf9ebe
!ob_extra
URxvt*color14:     #B0CFCF
URxvt*color15:     #ffffff
Let me know if that works. I don't know what it is but with the code you just posted I couldn't get it to work. Curious to see if what I'm giving you will work. If it does, slowly put in any changes, one at a time to get the config you way you want it.

I have used trasparency with many dm's and wm's, don't see any difference.

Work hard; Complain less

martibs
Virgin
Posts: 5
Joined: Sat Jan 19, 2013 4:14 pm

Re: URxvt and .Xresources

Unread post by martibs » Sun Jan 20, 2013 8:00 pm

Using that file didn't work. However, switching to feh as background setter did. feh is good enough for me, so I won't bother finding out wether it could work with nitrogen or not. Thanks for all the help, guys :)

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: URxvt and .Xresources

Unread post by rhowaldt » Sun Jan 20, 2013 8:10 pm

glad you got it to work martibs. now please be so kind as to mark your thread 'Solved' by adding '[Solved]' to the thread title (edit 1st post).
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: URxvt and .Xresources

Unread post by dkeg » Sun Jan 20, 2013 8:25 pm

great. There's some good info on the wiki for feh

EDIT: hit enter too soon

Work hard; Complain less

Post Reply