diff options
Diffstat (limited to 'mplayer')
-rw-r--r-- | mplayer/Makefile | 4 | ||||
-rwxr-xr-x | mplayer/mplayer | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/mplayer/Makefile b/mplayer/Makefile index c561294..372ea97 100644 --- a/mplayer/Makefile +++ b/mplayer/Makefile @@ -2,13 +2,17 @@ include ../common.mk install: + $(CHECK_INSTALLED) dash mkdir -p -- ~/.config/profile.d test ! -d ~/.config/profile.d/mplayer ln -sf -- ~/.dotfiles/mplayer/user-profile ~/.config/profile.d/mplayer + mkdir -p -- ~/.local/bin + ln -sf -- ~/.dotfiles/mplayer/mplayer ~/.local/bin/ uninstall: -unlink -- ~/.config/profile.d/mplayer -rmdir -- ~/.config/profile.d -rm -rf -- ~/.config/mplayer + -unlink -- ~/.local/bin/mplayer .PHONY: install uninstall diff --git a/mplayer/mplayer b/mplayer/mplayer new file mode 100755 index 0000000..1175d81 --- /dev/null +++ b/mplayer/mplayer @@ -0,0 +1,7 @@ +#!/bin/dash + +if test -x /usr/local/bin/mplayer; then + exec /usr/local/bin/mplayer -softvol -msgcolor "$@" +else + exec /usr/bin/mplayer -softvol -msgcolor "$@" +fi |