[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.
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.
[Solved] URxvt and .Xresources
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.
- ivanovnegro
- Minister of Truth
- Posts: 5450
- Joined: Wed Oct 17, 2012 11:12 pm
Re: URxvt and .Xresources
Welcome to the BBQ!
Maybe post your Xresources here.
Maybe post your Xresources here.
Re: URxvt and .Xresources
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...
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
Re: URxvt and .Xresources
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.
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: URxvt and .Xresources
.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
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..
- ivanovnegro
- Minister of Truth
- Posts: 5450
- Joined: Wed Oct 17, 2012 11:12 pm
Re: URxvt and .Xresources
I only use and used .Xdefaults with urxvt.
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: URxvt and .Xresources
@OP: It's just that xterm doesn't read the Urvxt* entries
https://wiki.archlinux.org/index.php/X_resources
https://wiki.archlinux.org/index.php/X_resources
..gnutella..
Re: URxvt and .Xresources
@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:
$ 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
Re: URxvt and .Xresources
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.
- ivanovnegro
- Minister of Truth
- Posts: 5450
- Joined: Wed Oct 17, 2012 11:12 pm
Re: URxvt and .Xresources
Maybe it helps, though I never tried transparency: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
https://wiki.archlinux.org/index.php/Rx ... ansparency
Re: URxvt and .Xresources
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
Nice colors btw
Code: Select all
URxvt*tintColor: black
Work hard; Complain less
Re: URxvt and .Xresources
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:
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
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: URxvt and .Xresources
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?
Is this an Openbox/WM-only setup?
..gnutella..
Re: URxvt and .Xresources
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.
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.
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
I have used trasparency with many dm's and wm's, don't see any difference.
Work hard; Complain less
Re: URxvt and .Xresources
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 :)
Re: URxvt and .Xresources
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.
Re: URxvt and .Xresources
Work hard; Complain less