webview moved to linkhandler
This commit is contained in:
parent
a1b3dbb9c0
commit
19b951534c
2 changed files with 6 additions and 6 deletions
|
@ -12,18 +12,18 @@ vidsites="youtube.com
|
||||||
\|bitchute.com
|
\|bitchute.com
|
||||||
"
|
"
|
||||||
ext="${1##*.}"
|
ext="${1##*.}"
|
||||||
mpvFiles="mkv mp4 gif"
|
mpvFiles="mkv mp4 gif webm"
|
||||||
fehFiles="png jpg jpeg jpe"
|
fehFiles="png jpg jpeg jpe"
|
||||||
wgetFiles="mp3 flac opus mp3?source=feed pdf"
|
wgetFiles="mp3 flac opus mp3?source=feed pdf"
|
||||||
|
|
||||||
if echo $fehFiles | grep -w $ext > /dev/null; then
|
if echo $fehFiles | grep -w $ext > /dev/null; then
|
||||||
feh "$1" >/dev/null &
|
feh "$1" >/dev/null & disown
|
||||||
elif echo $mpvFiles | grep -w $ext > /dev/null; then
|
elif echo $mpvFiles | grep -w $ext > /dev/null; then
|
||||||
mpv --loop --quiet "$1" > /dev/null &
|
mpv -quiet "$1" > /dev/null & disown
|
||||||
elif echo $wgetFiles | grep -w $ext > /dev/null; then
|
elif echo $wgetFiles | grep -w $ext > /dev/null; then
|
||||||
wget "$1" >/dev/null &
|
wget "$1" >/dev/null & disown
|
||||||
elif echo "$@" | grep "$vidsites">/dev/null; then
|
elif echo "$@" | grep "$vidsites">/dev/null; then
|
||||||
mpv -quiet "$1" > /dev/null &
|
mpv -quiet "$1" > /dev/null & disown
|
||||||
else
|
else
|
||||||
$BROWSER "$1" 2>/dev/null & disown
|
$BROWSER "$1" 2>/dev/null & disown
|
||||||
fi
|
fi
|
2
.urlview
2
.urlview
|
@ -25,5 +25,5 @@ REGEXP (((http|https|ftp|gopher)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>
|
||||||
|
|
||||||
#COMMAND lynx %s
|
#COMMAND lynx %s
|
||||||
#COMMAND netscape -remote 'openURL(%s)'
|
#COMMAND netscape -remote 'openURL(%s)'
|
||||||
COMMAND webview
|
COMMAND linkhandler
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue