summaryrefslogtreecommitdiffstats
path: root/.local/bin/webview.sh
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-01 19:46:01 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-01 19:46:01 +0100
commit95cc831989799a31d97b3168582bccc66a7a60dc (patch)
tree7a119d3112ee78f5d096711f3c4a28eba296637e /.local/bin/webview.sh
parentworking on unixize (diff)
downloaddotfiles-bsd-95cc831989799a31d97b3168582bccc66a7a60dc.tar.gz
dotfiles-bsd-95cc831989799a31d97b3168582bccc66a7a60dc.tar.bz2
dotfiles-bsd-95cc831989799a31d97b3168582bccc66a7a60dc.tar.xz
dotfiles-bsd-95cc831989799a31d97b3168582bccc66a7a60dc.tar.zst
dotfiles-bsd-95cc831989799a31d97b3168582bccc66a7a60dc.zip
Renamed scripts
Diffstat (limited to '.local/bin/webview.sh')
-rwxr-xr-x.local/bin/webview.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/.local/bin/webview.sh b/.local/bin/webview.sh
deleted file mode 100755
index bbf114a..0000000
--- a/.local/bin/webview.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/local/bin/dash
-
-ext="${1##*.}"
-mpvFiles="mkv mp4 gif"
-sxivFiles="png jpg jpeg jpe xpm"
-wgetFiles="flac mp3 mp3?source=feed opus pdf doc docx"
-
-cd ~/dl || exit
-
-if echo "$sxivFiles" | grep -w "$ext" > /dev/null; then
- nohup sxiv "$1" > /dev/null &
-elif echo "$mpvFiles" | grep -w "$ext" > /dev/null; then
- nohup mpv --loop --quiet "$1" > /dev/null &
-elif echo "$wgetFiles" | grep -w "$ext" > /dev/null; then
- clear
- fetch "$1"
-else
- clear
- mpv-view.pl "$1"
-fi