This is a basic Now Playing TUI written in Go. I wanted a simple way to see what was playing on my Spotify account without having to open the app. This is a simple solution that uses playerctl to get the currently playing song and display it in the terminal. It even gives you basic controls to play/pause, skip, and go back.
You can install GoPlaying from the AUR with the package goplaying-git
.
yay -S goplaying-git
- go
- playerctl
- Clone the repository
git clone https://github.com/justinmdickey/goplaying.git
- cd into the directory
cd goplaying
- Run
go build
go build
- Run
./goplaying
./goplaying
Custom colors can be set using flags:
--color
or -c
- Set the color of the text. This can be a color name or hex code.
./goplaying --color=red
./goplaying -c red
./goplaying -c=#ff0000
The controls are basic vim keybinds:
p
- Play/Pausen
- Nextb
- Previousq
- Quit
This project is licensed under the MIT License - see the LICENSE file for details.