Skip to content

Instantly share code, notes, and snippets.

@hackathi
Created November 8, 2015 18:50
Show Gist options
  • Select an option

  • Save hackathi/608231ced22b0a3df673 to your computer and use it in GitHub Desktop.

Select an option

Save hackathi/608231ced22b0a3df673 to your computer and use it in GitHub Desktop.
Media Monkey 3 Installation under wine
bindsym XF86AudioPlay exec --no-startup-id /usr/local/bin/mm-control play
bindsym XF86AudioStop exec --no-startup-id /usr/local/bin/mm-control stop
bindsym XF86AudioNext exec --no-startup-id /usr/local/bin/mm-control next
bindsym XF86AudioPrev exec --no-startup-id /usr/local/bin/mm-control prev
# you may want to set the correct sink ID here
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1 -- -10%
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1 -- +10%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle
WINEARCH=win32 WINEPREFIX=~/.wine-mm winetricks wmp10
WINEARCH=win32 WINEPREFIX=~/.wine-mm wine MediaMonkey_3.2.5.1306.exe
# That's it. Really!
#!/bin/bash
# put that in your path
WINEARCH=win32 WINEPREFIX=~/.wine-mm wine ~/.wine-mm/drive_c/Program\ Files/MediaMonkey/MediaMonkey.exe
#!/bin/bash
pgrep MediaMonkey | grep "[0-9]" > /dev/null
if [ $? -ne 0 ]
then
exit # media monkey is not running
fi
# mm is running, get window id
key="$1"
case $key in
play)
xdotool search --name MediaMonkey | head -n 1 | xargs -i xdotool key --window {} XF86AudioPlay
;;
next)
xdotool search --name MediaMonkey | head -n 1 | xargs -i xdotool key --window {} XF86AudioNext
;;
prev)
xdotool search --name MediaMonkey | head -n 1 | xargs -i xdotool key --window {} XF86AudioPrev
;;
stop)
xdotool search --name MediaMonkey | head -n 1 | xargs -i xdotool key --window {} XF86AudioStop
;;
*)
;;
esac

You need to use MM3, as MM4 does some wierd things (at least with my i3wm) and won't work correctly. Also, it's UI is slow as hell.

I expect you to have the setup ready. You can find it in the interwebs.

I also added my helper scripts :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment