Control Spotify directly from KRunner using simple commands prefixed with sp. This plugin uses Spotipy to interact with the Spotify Web API, allowing you to control Spotify playback on any device - your phone, Chromecast, Smart TV, or computer - all from your KDE desktop.
- Universal Control: Control Spotify on any device connected to your account
- Prefix-based Commands: All commands start with
spfor easy access (e.g.,sp play,sp next) - Rich Functionality: Play songs, control playback, manage playlists, adjust volume, and more
- Search Integration: Search for songs, artists, playlists, podcasts, and episodes
- Queue Management: Add tracks to your queue on the fly
- Clone the repository:
git clone https://github.com/JochemKuipers/krunner-spotify
cd krunner-spotify- Run the install script:
sh install.shThe installer will create a virtual environment and install all required dependencies automatically.
- Configure KRunner Priority (Recommended):
- Open KRunner settings (search for "KRunner" in System Settings)
- Go to the "Plugins" section
- Find "KRunner Spotify" in the list
- Add it to your Favorites and move it to the top of the favorites list
- This ensures Spotify results always appear first when using the
spprefix
Navigate to the repository directory and run:
sh uninstall.shAll commands must be prefixed with sp (e.g., sp login, sp play Bohemian Rhapsody).
- First time setup - authenticate with Spotify:
sp login
- Play music:
sp play <track name>
sp song <search query>
sp artist <artist name>
sp playlist <playlist name>
## Debugging
To run the plugin in debug mode and see console output:
```sh
sh debug.sh
The configuration file is located at ~/.config/KRunner-Spotify/KRunner-Spotify.config. You can edit it directly or use:
sp editconfig
Plugin results have low priority:
- Open KRunner settings in System Settings
- Add "KRunner Spotify" to Favorites
- Move it to the top of the favorites list
- This ensures
spcommands always show results first
Plugin not appearing:
pkill -9 -f KRunnerSpotify.py
kquitapp6 krunnerThen try opening KRunner again.
Distributed under the GPL-3.0 License. See LICENSE for more information.
Original project by Martijn Vogelaar
Maintained and updated by Jochem Kuipers
Project Link: GitHub
- Playback Control: Play, pause, resume, next, previous, shuffle, repeat
- Search & Play: Songs, artists, playlists, podcasts, episodes
- Queue Management: Add tracks to queue
- Volume Control: Increase, decrease, or set specific volume levels
- Track Information: View current track details
- Advanced: Fast forward, rewind, seek to specific time
- Configuration: Edit config, reload settings, login/logout
- Control your own playlists
- Create
- Delete
- Rename
- Add (current) song to playlist
- Search and play album by name
- Search and play album by artists name
- Play an artist besides just searching for songs by artist.
Distributed under the GPL-3.0 License. See LICENSE for more information.
Martijn Vogelaar - [email protected]
Project Link: GitHub