urxvt - open urls smarter
This commit is contained in:
parent
14b52791ec
commit
3171048232
@ -104,7 +104,7 @@ urxvt.termName: rxvt-unicode
|
||||
URxvt.perl-ext-common: default,matcher,tabbedex,font-size
|
||||
|
||||
! matcher: clickable urls
|
||||
URxvt.url-launcher: /usr/bin/firefox
|
||||
URxvt.url-launcher: /home/felix/.local/bin/open.sh
|
||||
URxvt.matcher.button: 1
|
||||
|
||||
! tabbedex: tabs
|
||||
|
5
local/bin/open.sh
Executable file
5
local/bin/open.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
curl -IL $1 \
|
||||
| grep Content-Type \
|
||||
| tail -n 1 \
|
||||
| grep image && feh $1 || firefox $1
|
Loading…
Reference in New Issue
Block a user