aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2022-05-09 00:54:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2022-05-09 00:54:47 +1200
commitb7c9c64bd244dae75ceee08280b358ed4155b135 (patch)
treed2deed1a5e26946e0b8d71bdbdf2e87a946fcfba
parentSupport <main> element for HTML Vim lang detection (diff)
downloaddotfiles-b7c9c64bd244dae75ceee08280b358ed4155b135.tar.gz
dotfiles-b7c9c64bd244dae75ceee08280b358ed4155b135.zip
Prevent mpv output junk in .xsession-errors
-rw-r--r--bin/xgo.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/xgo.sh b/bin/xgo.sh
index 35c2485f..c888622d 100644
--- a/bin/xgo.sh
+++ b/bin/xgo.sh
@@ -39,7 +39,7 @@ for url do (
# mpv(1)
(*[/.]youtube.com/watch*[?\&]t=) ;;
(*[/.]youtube.com/watch*)
- exec mpv -- "$url"
+ exec mpv --force-window --no-terminal -- "$url"
;;
esac
@@ -62,7 +62,7 @@ for url do (
# Open audio and video in mpv(1); force a window even for audio so I
# can control it
(audio/*|video/*)
- exec mpv --force-window -- "$url"
+ exec mpv --force-window --no-terminal -- "$url"
;;
# If the MIME type is an image that is not a GIF, load it in feh(1)