diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-17 18:49:12 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-17 18:49:12 +0200 |
commit | 6847b6208a99169193958888b80022ee3dec88d4 (patch) | |
tree | c4ecd289216dc9c96c71b158409608d603521d8f /.local/bin/webview.sh | |
parent | Pretty cool script (diff) | |
download | dotfiles-bsd-6847b6208a99169193958888b80022ee3dec88d4.tar.gz dotfiles-bsd-6847b6208a99169193958888b80022ee3dec88d4.tar.bz2 dotfiles-bsd-6847b6208a99169193958888b80022ee3dec88d4.tar.xz dotfiles-bsd-6847b6208a99169193958888b80022ee3dec88d4.tar.zst dotfiles-bsd-6847b6208a99169193958888b80022ee3dec88d4.zip |
Newsboat rice
Diffstat (limited to '.local/bin/webview.sh')
-rwxr-xr-x | .local/bin/webview.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/.local/bin/webview.sh b/.local/bin/webview.sh index 6975853..62cec30 100755 --- a/.local/bin/webview.sh +++ b/.local/bin/webview.sh @@ -1,8 +1,8 @@ #!/usr/local/bin/dash ext="${1##*.}" -mpvFiles="mkv mp4 gif" -sxivFiles="png jpg jpeg jpe" +mpvFiles="mkv mp4 gif" +sxivFiles="png jpg jpeg jpe xpm" wgetFiles="flac mp3 mp3?source=feed opus pdf doc docx" cd ~/Downloads || exit @@ -12,7 +12,9 @@ if echo "$sxivFiles" | grep -w "$ext" > /dev/null; then 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 - nohup st -e wget "$1" > /dev/null & + clear + fetch "$1" else - nohup qutebrowser "$1" > /dev/null & + clear + mpv-view.pl "$1" fi |