aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/wrappers/mplayer
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/wrappers/mplayer')
-rwxr-xr-x.local/bin/wrappers/mplayer3
1 files changed, 3 insertions, 0 deletions
diff --git a/.local/bin/wrappers/mplayer b/.local/bin/wrappers/mplayer
new file mode 100755
index 0000000..8554a81
--- /dev/null
+++ b/.local/bin/wrappers/mplayer
@@ -0,0 +1,3 @@
+#!/bin/sh -eu
+export MPLAYER_HOME="$XDG_CONFIG_HOME/mplayer"
+$(which mplayer --all | grep --invert-match "local/bin" | head -n 1) "$@"