Skip to content

Instantly share code, notes, and snippets.

@kamack38
Created December 29, 2021 20:08
Show Gist options
  • Save kamack38/45abffcceaeadc330254d3f5ea59949b to your computer and use it in GitHub Desktop.
Save kamack38/45abffcceaeadc330254d3f5ea59949b to your computer and use it in GitHub Desktop.
# Adds support for media keys in MPV
Media_Play_Pause::ControlSend, ahk_parent, {Space}, ahk_exe mpv.exe
Media_Next::ControlSend, ahk_parent, {`>}, ahk_exe mpv.exe
Media_Prev::ControlSend, ahk_parent, {`<}, ahk_exe mpv.exe
<+Volume_Up::ControlSend, ahk_parent, {0}, ahk_exe mpv.exe
<+Volume_Down::ControlSend, ahk_parent, {9}, ahk_exe mpv.exe
@kamack38
Copy link
Author

Keys

Action Key
Play/Pause Play/Pause Button
Next file in playlist Next Button
Previous file in playlist Previous Button
Shift + Up Volume Up
Shift + Down Volume Down

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