--- /dev/null
+# MPlayer2 (mplayer fork) configuration file.
+
+# Copyright (C) 2011-2013 Simon Ruderich
+#
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this file. If not, see <http://www.gnu.org/licenses/>.
+
+
+# Use xv (preferred, hardware accelerated) or x11 as video driver.
+vo=xv,x11
+# Use ALSA as audio driver.
+ao=alsa
+
+# Use PCM to control volume. mplayer2 uses Master by default.
+mixer-channel=PCM
+
+# Prefer English and German audio and subtitles.
+alang=en,de
+slang=en,de
+
+# Disable LIRC as I don't use it. Prevents a warning on startup.
+nolirc=yes
+
+# Disable the mouse, no need for it. Prevents accidental skipping with the
+# touchpad (scroll wheel) for example.
+nomouseinput=yes
+
+# vim: ft=mplayerconf
. ../lib.sh
-# Link setup.
-link mplayer ~/.mplayer
+
+# MPlayer and MPlayer2 use the same configuration directory.
+if installed mplayer; then
+ if mplayer --help | grep MPlayer2 >/dev/null; then
+ link mplayer2 ~/.mplayer
+ else
+ link mplayer ~/.mplayer
+ fi
+fi