You are not logged in.
Pages: 1
Topic closed
Can you enable links in urxvt so that when you click them, they open in firefox?
I'm running irssi in urxvt and would prefer this over using the openurl script (which isnt working too well)
Last edited by ronandi (2008-04-28 05:31:44)
Mobo:Gigabyte Technology Co., Ltd. GA-P35-DS4 Rev. 2.0 // Processor:Intel(R) Core(TM)2 Quad CPU Q6600 @ 3 GHz
Memory:Crucial Ballistix PC2-8500 (DDR2-1066) 2046MB RAM
Video Card: MSI NVIDIA GeForce 8800 GTS 512 (G92) 730mhz Sound Card: ASUS Xonar Essence STX Headphones: Sennheiser HD555
Openbox & PyPanel
Offline
Can you enable links in urxvt so that when you click them, they open in firefox?
I'm running irssi in urxvt and would prefer this over using the openurl script (which isnt working too well)
Add the following to ~/.Xdefaults:
urxvt*perl-lib: /usr/lib/urxvt/perl/
urxvt*perl-ext-common: default,matcher
urxvt*urlLauncher: /usr/bin/firefox
urxvt*matcher.button: 1
urxvt*matcher.pattern.1: \\bwww\\.[\\w-]+\\.[\\w./?&@#-]*[\\w/-]
thayer williams ~ cinderwick.ca
Offline
Thanks a lot! Works perfectly.
Mobo:Gigabyte Technology Co., Ltd. GA-P35-DS4 Rev. 2.0 // Processor:Intel(R) Core(TM)2 Quad CPU Q6600 @ 3 GHz
Memory:Crucial Ballistix PC2-8500 (DDR2-1066) 2046MB RAM
Video Card: MSI NVIDIA GeForce 8800 GTS 512 (G92) 730mhz Sound Card: ASUS Xonar Essence STX Headphones: Sennheiser HD555
Openbox & PyPanel
Offline
For the record, your pattern.1 isn't needed. The default pattern is much more thorough.
Also, I think the perl-lib setting may default to the path you have there
Offline
For the record, your pattern.1 isn't needed. The default pattern is much more thorough.
Also, I think the perl-lib setting may default to the path you have there
Ah ha! Thanks for the tip...at some point last year I was looking for the same solution and simply copied it from somewhere else.
thayer williams ~ cinderwick.ca
Offline
phrakture wrote:For the record, your pattern.1 isn't needed. The default pattern is much more thorough.
Also, I think the perl-lib setting may default to the path you have there
Ah ha! Thanks for the tip...at some point last year I was looking for the same solution and simply copied it from somewhere else.
you should have copied it from code.phraktured.net
There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums. That is why we avoid it. -- ewaller (arch linux forum moderator)
Offline
Ah, it doesn't actually work.
I have the following chunk o' code in my .Xdefaults:
urxvt*perl-ext-common: default,matcher
urxvt*urlLauncher: /usr/bin/firefox3
urxvt*matcher.Button: 1
But nothing happens. A URL gets nicely underlined and such, but when I click it nothing happens...
EDIT: Yeah, so the problem was perl-ext-common: It had to be perl-ext. Now everything is nice.
One thing I still don't get is why 'urxvt.matcher.Button' doesn't work for me. No matter what I write (0,1,2) - I can only open a URL with middle click. Neither left (which is supposed to be one 1) nor right (I guess on 3) work. It always, no matter what I have written there, defaults to the middle mouse button.
Ideas?
Last edited by Stalafin (2008-06-20 13:30:41)
Offline
This is still the top search result for this problem, so resurrecting for the benefit of others:
The name of the option urlLauncher has changed to url-launcher. See man urxvt, or this thread:
Offline
Please don't do that. The wiki should be updated if need be, dead threads should be left in peace.
https://wiki.archlinux.org/index.php/Fo … bumping.22
Closing.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1
Topic closed