diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-08-11 15:58:37 +0200 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-08-11 15:58:37 +0200 |
commit | 5e17418f1eef06e97bb621edf53530437df8b14f (patch) | |
tree | f87466982929a0d0fead9ec97a5e9b017c76bf9e /.uzbl/scripts/downloadviewer.sh | |
parent | 8df9472e0cdbab0d12211c2bc77918e8f515c409 (diff) |
Back up several files
Diffstat (limited to '.uzbl/scripts/downloadviewer.sh')
-rwxr-xr-x | .uzbl/scripts/downloadviewer.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.uzbl/scripts/downloadviewer.sh b/.uzbl/scripts/downloadviewer.sh new file mode 100755 index 0000000..306460d --- /dev/null +++ b/.uzbl/scripts/downloadviewer.sh @@ -0,0 +1,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 |