Features • Hotkeys • Configuration • Install • License
- Play, pause and skip tracks with native media keys
- Get track info (including album art)
- Like track
- Copy current track link to clipboard
Spoon automatically finds browser that running Yandex.Music. Code contains predefined list of browsers, so if you running YM in multiple browsers at the same time it will select first matched browser.
Function | Hotkey |
---|---|
Play | Play/Pause track |
Next | Switch to next track |
Prev | Switch to previous track |
⌘ + Play | Show current track info |
⌘ + Next | Like/Dislike current track |
⌘ + Prev | Copy link to current track |
~/.hammerspoon/Spoons/YandexMusicControl.spoon/init.lua
- Disable alerts on like and link copy. Change
SHOW_ALERTS = true
tofalse
. - Remove browsers from detect list. Edit
BROWSER_LIST
variable.
- Install Hammerspoon with
brew cask install hammerspoon
- Download latest release from release page
- Extract and copy
YandexMusicControl.spoon
into~/.hammerspoon/Spoons
folder - Insert
hs.loadSpoon("YandexMusicControl")
into top of~/.hammerspoon/init.lua
file - Reload Hammerspoon
- Enable JavaScript execution by AppleScript in yout browser
MIT