urxvt tips :: transparency, deamonized, clickable links
English, Free, Linux, teranetworks, Tips November 3rd, 2008Urxvt or rxvt-unicode is a very configurable terminal emulator. Some time ago I wrote about some fancy stuff that enables things like deamon mode, clickable links, transparent, borderless terminal window, aso.
Being inactive for some time it’s time to update the old posts. I will keep this rather short as the most important issues are already described in the older posts you can find at the end of the article under related articles.
Transparent and borderless
I prefer transparent terminals very much. If you do too here is what to do: Add the relevant parts to your .Xdefaults file so that you don’t have to specify startup parameters every time for urxvt(c). Make also sure to adjust the colors in a way that enhances readability with transparent terminals.
Here is how it looks:
irssi in urxvt
urxvt in awesome
You can see the relevant parts below or also find the complete Xdefaults file here: Xdefaults
URxvt*termName: rxvt
## borderless and no scrollbar
URxvt*scrollBar_right: false
URxvt*scrollBar: false
URxvt*borderLess: false## teh transparency stuff
URxvt*inheritPixmap: true
URxvt*tintColor: white
URxvt*shading: 40## geometry and font
URxvt*geometry: 84×24
URxvt*font: xft:terminus:pixelsize=12## change default colors
URxvt*background: #000000
URxvt*foreground: #A8A8A8
URxvt*color0: #000000
URxvt*color1: #A80000
URxvt*color2: #00A800
URxvt*color3: #A85400
URxvt*color4: #0000A8
URxvt*color5: #A800A8
URxvt*color6: #00A8A8
URxvt*color7: #A8A8A8
URxvt*color8: #545054
URxvt*color9: #F85450
URxvt*color10: #50FC50
URxvt*color11: #F2FC50
URxvt*color12: #5054F8
URxvt*color13: #F854F8
URxvt*color14: #50FCF8
URxvt*color15: #F8FCF8
Deamon mode
Urxvt offers a deamon mode. It offers many advantages like decreased startup time and lesser use of ressources with lots of opened terminal windows.
Just start the urxvt-deamon with:
urxvtd -q -f -o
You may add this line to your .xinitrc so it gets started every time you start X. After that you can start the client windows with
urxvtc
Beware that using the daemon bares the risk of loosing all terminal windows if a crash occurs. But I just want to mention that never happened in the last 2 years ;-)
Clickable links
Many people don’t know it’s kind of easy to tell urxvt to make your links clickable so they are opened in the internet-browser of your choice.
URxvt.perl-ext-common: default,matcher
URxvt.urlLauncher: firefox
URxvt.matcher.button: 2
URxvt.matcher.pattern.1: \\bwww\\.[\\w-]\\.[\\w./?&@#-]*[\\w/-]
Customize the matcher button to the mouse button of your choice and the browser to the browser of your choice. The matcher pattern should work for everybody so far and detects links automatically in the terminal-window.
So far, stay tuned and feel free to comment. Greetings to the guys from #archlinux.de for motivating me ;)
22 Responses to “urxvt tips :: transparency, deamonized, clickable links”
Trackbacks
- link conversion in urxvt / rxvt-unicode | clickable links | teh geekosphere.org
- urxvt / rxvt-unicode extended | running deamonized and config update | teh geekosphere.org
- transparent & borderless urxvt / rxvt-unicode with readable colors | teh geekosphere.org
- Cross-blogging oder so :: general infos : schischa’s blog
- uberVU - social comments






November 3rd, 2008 at 16:11
nice one!!
thx for the clickable links section!
November 5th, 2008 at 13:38
Nice, thanks for that. Here’s what I use as my patterns:
URxvt*matcher.pattern.1: \\b(mailto|http|https|ftp|file):[/]*[\\w-]\\.[\\w./?&@#-]*[\\w/-]
URxvt*matcher.pattern.2: \\bwww\\.[\\w-]\\.[\\w./?&@#-]*[\\w/-]
The first one grabs a few more URL schemas. Far from perfect but hits the well-defined ones rather nicely. The second one is for the lazy typists who leave out the schema :)
November 13th, 2008 at 11:18
thx!
will have a look at your patterns. the second one is the same as mine and I think it should grab most links the first one does. but for the rest it’s really nice to have as you can use more than one pattern at the same time (which I didn’t know) ;)
December 3rd, 2008 at 21:56
seems that with the new xorg you have to rename URxvt to urxvt in .Xdefaults :)
December 3rd, 2008 at 21:59
sorry for double reply.. forgot to mention, that in wm’s ion3 and awesome3 (and maybe some other tiling wms) you have to remove the “borderLess: true” line because of problems to focus the urxvt window if you don’t.
January 4th, 2009 at 22:03
hm here it works with URxvt. and to the borderless problem there already is a post and I’ve updated it in this one.
April 22nd, 2009 at 22:01
the xdefault file is missing
May 23rd, 2009 at 10:18
can someone paste the complete xdefaults?
May 26th, 2009 at 3:24
Xdefaults is there again, sry for the inconvenience
June 9th, 2009 at 0:40
I can’t get this to work in cygwin …
September 24th, 2009 at 14:05
Xdefault is again missing :S
September 24th, 2009 at 14:58
Xdefault still unavaible
September 28th, 2009 at 23:01
just two words..
as Thomas says, the Xdefault from pastebin is still missing.. I don’t know if all I need is the part you paste here.. but I think that there’s a reason if you uploaded all the file!
Second, is possible to have a similar config available with another terminal emulator such the xfce one?
Thank you very much for sharing your beautiful work.. it rocks!!
September 29th, 2009 at 13:15
so sorry… schischa will fix it as soon as he gets back online (or i’ll kick his ass ;))
@brainvision: you can configure multiple terminals with the .Xdefaults. but a lot of the features must be supported by the terminal.
October 6th, 2009 at 20:09
sry it took me so long, just uploaded the .Xdefaults :)
March 3rd, 2010 at 17:04
I’m used to using gnome-terminal, where the transparency of my terminal wasn’t just a transparency to see my desktop, but specifically, I could see any windows existing behind my terminal (eg.: have an article/tutorial open in my browser, and be typing things in my terminal just over that).
Is such transparency something achievable only with heavy-duty eye candy (gnome)?
April 24th, 2011 at 11:11
Is it possible to post the .Xdefaults file again?
I pasted the part that you have here into my .Xdefaults, rebooted, started the daemon like you did then started the urxvtc and it looks completely normal and awful still. Do I just need the full .Xdefault file?
Anyway thanks for sharing this. It’s realy cool and I’m hoping I can get mine setup like this!