dotfiles/home/swallow

23 lines
218 B
Plaintext
Raw Normal View History

2022-02-06 12:48:48 -05:00
#!/bin/sh
MPV=/usr/bin/mpv
mpv() {
EXT=${*##*.}
case "$*" in
*--no-video*)
$MPV $*
;;
*)
case "$EXT" in
ogg|opus|mp3)
$MPV $*
;;
*)
swallow $MPV $*
;;
esac
;;
esac
}