https://github.com/0xc000022070/spotify-dbus-control
Shell script to Control your Spotify client with D-Bus. Use it as CLI or with your WM by configuring keybindings to trigger actions like play, pause, toggle, next song, previous song, jump forward and backward by 5s
https://github.com/0xc000022070/spotify-dbus-control
cli manager spotify-cli spotify-dbus window-manager
Last synced: 6 months ago
JSON representation
Shell script to Control your Spotify client with D-Bus. Use it as CLI or with your WM by configuring keybindings to trigger actions like play, pause, toggle, next song, previous song, jump forward and backward by 5s
- Host: GitHub
- URL: https://github.com/0xc000022070/spotify-dbus-control
- Owner: 0xc000022070
- Created: 2024-05-21T17:00:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-14T02:38:33.000Z (10 months ago)
- Last Synced: 2025-04-15T05:59:54.620Z (10 months ago)
- Topics: cli, manager, spotify-cli, spotify-dbus, window-manager
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: .github/README.md
Awesome Lists containing this project
README
# Spotify DBUS Control
## How? (NixOS)
1. First add the flake to your NixOS configuration:
```nix
inputs = {
spotify-dbus-control = {
url = "github:0xc000022070/spotify-dbus-control";
# optional
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
...
}
```
2. Integrate it with your own window manager (I'm using Hyprland in this example).

## CLI Reference
```text
spotify-dbus
Flags:
--next Go to the next song
--prev Go to the previous song
--toggle Play or pause the current song
--push-back Go back 5 seconds
--push-forward Go forward 5 seconds
--stop Just stop
```
## License
[MIT](./LICENSE)