aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-23 00:13:22 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-23 00:13:22 +1200
commitedbbbd8ee046fdec04ccf07722746224f8d223fd (patch)
tree075cce9a4bc3af8f795becbd1605a2b01781752e
parent8d33cb2d3c514ffe5b8ad766ab160c0cf691c467 (diff)
downloaddotfiles-edbbbd8ee046fdec04ccf07722746224f8d223fd.tar.gz
dotfiles-edbbbd8ee046fdec04ccf07722746224f8d223fd.zip
Have xgo(1) handle audio with mpv(1)
-rwxr-xr-xbin/xgo3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/xgo b/bin/xgo
index b2ff906a..f4e3e51f 100755
--- a/bin/xgo
+++ b/bin/xgo
@@ -22,6 +22,9 @@ for url ; do (
# If the MIME type is an image, load it in feh(1)
case $mt in
+ audio/*)
+ mpv --force-window -- "$url" && exit
+ ;;
image/gif) ;;
image/*)
curl -- "$url" | feh - && exit