summaryrefslogtreecommitdiff
path: root/.local/bin/linkhandler
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-10-18 00:04:17 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2020-10-18 00:04:17 -0400
commit12bbee25132747995fe801b2f0754220741cbf73 (patch)
tree545904a4e27e860f7a7cc206aaed19687fe5d124 /.local/bin/linkhandler
parentd427693f43ba211e35f18adc877f5df48e4724db (diff)
make linkhandler swallow mpv
Diffstat (limited to '.local/bin/linkhandler')
-rwxr-xr-x.local/bin/linkhandler3
1 files changed, 2 insertions, 1 deletions
diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler
index 8b8ca76..0354a02 100755
--- a/.local/bin/linkhandler
+++ b/.local/bin/linkhandler
@@ -11,7 +11,8 @@
case "$1" in
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*hooktube.com*|*bitchute.com*)
- setsid -f mpv --no-config "$1" ;;
+ mpv --no-config "$1" ;;
+ # setsid -f mpv --no-config "$1" ;;
*png|*jpg|*jpe|*jpeg|*gif|*.webp)
curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///")" && sxiv -a "/tmp/$(echo "$1" | sed "s/.*\///")" >/dev/null 2>&1 & ;;
*mp3|*flac|*opus|*mp3?source*)