]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Simpler profiles selection for mpv
authorSergey Matveev <stargrave@stargrave.org>
Sat, 2 May 2020 14:07:28 +0000 (17:07 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 2 May 2020 14:07:28 +0000 (17:07 +0300)
bin/bin/mp [new file with mode: 0755]
mpv/.mpv/config

diff --git a/bin/bin/mp b/bin/bin/mp
new file mode 100755 (executable)
index 0000000..9f03422
--- /dev/null
@@ -0,0 +1,3 @@
+#!/usr/bin/env perl
+
+exec "mpv", map { s/^([A-Z][A-Z])$/--profile=$1/ ; $_ } @ARGV;
index 6f4df67384d45cbb38e62417317e7c8f1057a727..364b28036a04658808044e3e34b0edec5f26d8be 100644 (file)
@@ -12,9 +12,9 @@ ytdl=no
 gapless-audio=yes
 autosync=30
 
 gapless-audio=yes
 autosync=30
 
-[extao]
+[AO]
 audio-device=oss//dev/dsp3
 oss-mixer-device=/dev/mixer3
 
 audio-device=oss//dev/dsp3
 oss-mixer-device=/dev/mixer3
 
-[volnorm]
+[VN]
 af=lavfi=loudnorm
 af=lavfi=loudnorm