Skip to content

3d3n-pyc/Spotify-Controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Controller

Description

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.

Features

  • Play the current track
  • Pause the current track
  • Play the next track
  • Play the previous track
  • Show the current track information (song, artist, length)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/spotify-controller.git
    cd spotify-controller
  2. Build the project:

    make

Usage

Run the spotify command with the desired options and subcommands:

./spotify [OPTIONS] [SUBCOMMANDS]

Options

  • -h, --help: Show the help message and exit

Subcommands

  • play: Play the current track
  • pause: Pause the current track
  • next: Play the next track
  • prev: Play the previous track
  • current: Show the current track information

Examples

  • 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

Development

Required

  • gcc (GNU Compiler Collection)
  • make (GNU Make)
  • readline (GNU Readline Library)

Build

To build the project, run the following command:

make

Clean

To clean the project, run the following command:

make clean

Debug

To build the project with debugging information, run the following command:

make debug

About

Permet de controller Spotify en tty

Resources

Stars

Watchers

Forks

Packages

No packages published