Skip to content

Instantly share code, notes, and snippets.

@pythoninthegrass
Last active June 24, 2025 19:43
Show Gist options
  • Save pythoninthegrass/581a62b1c3927e20b123f1c98732c100 to your computer and use it in GitHub Desktop.
Save pythoninthegrass/581a62b1c3927e20b123f1c98732c100 to your computer and use it in GitHub Desktop.
Use karabiner to remap media keys for YouTube Music Desktop (ytmdesktop) on macOS
{
"description": "Remap media keys for YouTube Music Desktop (ytmdesktop)",
"manipulators": [
{
"from": { "consumer_key_code": "play_or_pause" },
"to": [
{
"key_code": "p",
"modifiers": ["command", "option", "shift"]
}
],
"type": "basic"
},
{
"from": { "consumer_key_code": "scan_previous_track" },
"to": [
{
"key_code": "right_arrow",
"modifiers": ["command", "option", "shift"]
}
],
"type": "basic"
},
{
"from": { "consumer_key_code": "scan_next_track" },
"to": [
{
"key_code": "left_arrow",
"modifiers": ["command", "option", "shift"]
}
],
"type": "basic"
}
]
}
@pythoninthegrass
Copy link
Author

# ~/Library/Application\ Support/YouTube\ Music\ Desktop\ App/config.json
"shortcuts": {
	"playPause": "Meta+Alt+Shift+P",
	"next": "Meta+Alt+Shift+Left",
	"previous": "Meta+Alt+Shift+Right",
	"thumbsUp": "",
	"thumbsDown": "",
	"volumeUp": "",
	"volumeDown": ""
},

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