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

8 lines
125 B
Bash
Executable file

#!/bin/sh
if [[ $(playerctl metadata --format '{{lc(status)}}' | grep playing) -eq 0 ]]; then
exit 0
else
exit 1
fi