Spotify Controller is a command-line tool to control Spotify playback using DBus commands. It allows you to play, pause, skip tracks, and display the current track information directly from the terminal.
- Play the current track
- Pause the current track
- Play the next track
- Play the previous track
- Show the current track information (song, artist, length)
-
Clone the repository:
git clone https://github.com/yourusername/spotify-controller.git cd spotify-controller
-
Build the project:
make
Run the spotify command with the desired options and subcommands:
./spotify [OPTIONS] [SUBCOMMANDS]
-h, --help
: Show the help message and exit
play
: Play the current trackpause
: Pause the current tracknext
: Play the next trackprev
: Play the previous trackcurrent
: Show the current track information
- Play the current track:
./spotify play
- Pause the current track:
./spotify pause
- Play the next track:
./spotify next
- Play the previous track:
./spotify prev
- Show the current track information:
./spotify current
gcc
(GNU Compiler Collection)make
(GNU Make)readline
(GNU Readline Library)
To build the project, run the following command:
make
To clean the project, run the following command:
make clean
To build the project with debugging information, run the following command:
make debug