guix-dotfiles/home-config/waybar/modules/check-for-music.sh

8 lines
125 B
Bash
Raw Normal View History

2023-09-08 03:50:02 +00:00
#!/bin/sh
if [[ $(playerctl metadata --format '{{lc(status)}}' | grep playing) -eq 0 ]]; then
exit 0
else
exit 1
fi