Kashi is a custom BetterTouchTool widget that displays the current song lyrics on the Macbook Pro's Touch Bar.
Kashi currently works with Spotify, iTunes, and Youtube.
UPDATE (6/23/19): YouTube support added.
Kashi will also work when watching a YouTube music video on Chrome or Safari. In order to do this, Youtube must be on the active tab. If a browser and a player are open at the same time, Kashi will prioritize the player if it is playing music.
Kashi has three main functions:
- It retrieves data about the current song playing in Spotify, iTunes, or Youtube via AppleScript.
- It calls Genius and checks for a good match in the search hits, accounting for variations such as remixes.
- It scrapes the lyrics from the raw HTML of the Genius URL, prettifies, and outputs them onto the Touch Bar.
BetterTouchTool can be downloaded here. To install, unzip the download file and move the application file to your Applications folder.
Install Python 3 and the Python packages below.
For help with package installation, please refer to the Python Packaging User Guide.
- OSAscript
pip install osascript
orpip3 install osascript
- Requests
pip install requests
orpip3 install requests
- BeautifulSoup
pip install beautifulsoup4
orpip3 install beautifulsoup4
Open BetterTouchTool Configuration, accessible via the top menu bar.
Confirm that you are in the Touch Bar Settings.
Open kashi.json
in a text editor. Select all (⌘A) and copy (⌘C).
Paste (⌘V) directly into the BetterTouchTool Configuration window. The new widget will appear in your list.
That's it! Lyrics for the currently playing song should now appear on the Touch Bar. Enjoy! 🎉
For detailed information about Touch Bar customization, please refer to the official BTT Documentation.
More awesome Touch Bar presets can be found on the BTT Community Platform.
- Scrolling lyrics