diff --git a/Xresources b/Xresources index a141bd9..592829a 100644 --- a/Xresources +++ b/Xresources @@ -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 diff --git a/local/bin/open.sh b/local/bin/open.sh new file mode 100755 index 0000000..a48e109 --- /dev/null +++ b/local/bin/open.sh @@ -0,0 +1,5 @@ +#!/bin/bash +curl -IL $1 \ + | grep Content-Type \ + | tail -n 1 \ + | grep image && feh $1 || firefox $1