Skip to content

Instantly share code, notes, and snippets.

View ceetee's full-sized avatar

Christopher Traveis ceetee

View GitHub Profile

#Programming the KC60 on a Mac

  1. Download and unzip the [TKG-Toolkit][1] from Github (click on download zip on the right).
  2. Download the Mac version of [jq][2] (it will be named jq-osx-x86_64 or something similar)
    • rename the downloaded file to jq.
  3. Install dfu-programmer using [homebrew][3] brew install dfu-programmer.
  4. Go into the tkg-toolkit-master/linux/bin folder.
  5. Rename The existing jq file to jq.bak or something similar and drag in the new jq file you just downloaded.
  6. Exit the bin folder and return to the linux Folder.
  7. Open the file called reflash.sh in a text editor.
tell application "Spotify"
set myTrack to name of current track
set myArtist to artist of current track
set myAlbum to album of current track
set tM to round ((duration of current track) / 60) rounding down
set tS to (duration of current track) mod 60
set myTime to ((tM as text) & "min " & tS as text) & "s"
set nM to round (player position / 60) rounding down
set nS to round (player position mod 60) rounding down
set nowAt to ((nM as text) & "min " & nS as text) & "s"