Skip to content

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

Notifications You must be signed in to change notification settings

0xc000022070/spotify-dbus-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify DBUS Control

How? (NixOS)

  1. First add the flake to your NixOS configuration:
inputs = {
  spotify-dbus-control = {
     url = "github:0xc000022070/spotify-dbus-control";
     # optional
     inputs = {
       nixpkgs.follows = "nixpkgs";
       flake-utils.follows = "flake-utils";
     };
   };
  ...
}
  1. Integrate it with your own window manager (I'm using Hyprland in this example).

image

CLI Reference

spotify-dbus <flag>

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

About

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

Topics

Resources

Stars

Watchers

Forks