summaryrefslogtreecommitdiff
path: root/.uzbl/scripts/downloadviewer.sh
blob: 306460d4deceedc0f14d8049d739c350d04070d5 (plain)
1
2
3
4
5
6
7
#!/bin/sh
case "$1" in
*.pdf*) zathura "$1" & ;;
*.jpg*|*.png*|*.jpeg*) feh "$1" & ;;
*.txt*|*README*|*.pl*|*.sh*|*.py*|*.hs*|*.hl*) urxvt -e vim "$1" & ;;
*.mov*|*.avi*|*.mpeg*|*.mpg*|*.flv*|*.wmv*|*.mp4*) mplayer "$1" & ;;
esac