Skip to content

Use MacOS media keys to control Yandex.Music in supported browsers

License

Notifications You must be signed in to change notification settings

Ty3uK/YandexMusicControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yandex Music Logo
Yandex Music Control

Use MacOS media keys to control Yandex.Music in supported browsers.

     

FeaturesHotkeysConfigurationInstallLicense

Example GIF

Features

  • 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.

Hotkeys

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

Configuration

~/.hammerspoon/Spoons/YandexMusicControl.spoon/init.lua

  • Disable alerts on like and link copy. Change SHOW_ALERTS = true to false.
  • Remove browsers from detect list. Edit BROWSER_LIST variable.

Install

  • 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

License

MIT

About

Use MacOS media keys to control Yandex.Music in supported browsers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages