You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
381 B
17 lines
381 B
4 years ago
|
#!/bin/sh
|
||
|
|
||
|
ext="${1##*.}"
|
||
|
images="png jpg jpeg"
|
||
|
videos="mkv mp4 gif"
|
||
|
download="mp3 flac pdf"
|
||
|
|
||
|
if echo $images | grep -w $ext > /dev/null; then
|
||
|
tsp feh "$1" > /dev/null &
|
||
|
elif echo $videos | grep -w $ext > /dev/null; then
|
||
|
tsp mpv --quiet "$1" > /dev/null &
|
||
|
elif echo $download | grep -w $ext > /dev/null; then
|
||
|
tsp wget "$1" > /dev/null &
|
||
|
else
|
||
|
tsp $BROWSER "$1" > /dev/null &
|
||
|
fi
|