urxvt tips :: transparency, deamonized, clickable links
English, Free, Linux, Networkroll, Server, 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 ;)
10 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






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.