February update
This commit is contained in:
22
home/swallow
Normal file
22
home/swallow
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
MPV=/usr/bin/mpv
|
||||
|
||||
mpv() {
|
||||
EXT=${*##*.}
|
||||
|
||||
case "$*" in
|
||||
*--no-video*)
|
||||
$MPV $*
|
||||
;;
|
||||
*)
|
||||
case "$EXT" in
|
||||
ogg|opus|mp3)
|
||||
$MPV $*
|
||||
;;
|
||||
*)
|
||||
swallow $MPV $*
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
}
|
Reference in New Issue
Block a user