Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cybergaz/waybar_now_playing

custom module for current track inforamation on waybar
https://github.com/cybergaz/waybar_now_playing

rust waybar wayland

Last synced: about 6 hours ago
JSON representation

custom module for current track inforamation on waybar

Awesome Lists containing this project

README

        

waybar now-playing
=============

current track/song/media visualization on waybar written in rust which provide near zero performance and memory cost for updating even at the interval of 1 second

### dependencies
you need to have `playerctl` installed
```
sudo pacman -S playerctl
```

### get the binary here
* [download binary](https://github.com/cybergaz/waybar_now_playing/releases/download/v1.0/waybar_now_playing)

### manual build

```
git clone https://github.com/cybergaz/waybar_now_playing
cd waybar_now_playing
cargo build
```


### integration in waybar
just update the waybar config by adding new module , for example :
```
"custom/player": {
"exec": " path/to/binary ",
"format": "Playing : {}",
"interval": 2,
"return-type": "json",
"on-click": "playerctl play-pause"
},
```