Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cybergaz/waybar_now_playing
- Owner: cybergaz
- Created: 2023-08-24T17:25:44.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-28T09:32:45.000Z (3 months ago)
- Last Synced: 2024-08-28T10:55:41.004Z (3 months ago)
- Topics: rust, waybar, wayland
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
},
```