summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-09 20:08:13 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-09 20:08:13 +0100
commit95489238ab85b85aadd02ada2e264ef6c5ca81ea (patch)
tree542dddab82cba448c7ef08235af6025a125f15ed
parentf373a71fe06372425d1aa420b966ee7d379324af (diff)
Add video case to linkhandler
-rwxr-xr-x.local/bin/linkhandler4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler
index ebeaeec..e231311 100755
--- a/.local/bin/linkhandler
+++ b/.local/bin/linkhandler
@@ -10,8 +10,8 @@
[ -z "$1" ] && { "$BROWSER"; exit; }
case "$1" in
- # *mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*odysee.com*)
- # setsid -f mpv -quiet "$1" >/dev/null 2>&1 ;;
+ *mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*odysee.com*)
+ setsid -f mpv -quiet "$1" >/dev/null 2>&1 ;;
*png|*jpg|*jpe|*jpeg|*gif)
curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" && sxiv -a "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
*pdf|*cbz|*cbr)