1
0
Fork 0
dotfiles/.config/eww/scripts/songcardplayrender
2022-03-20 03:19:38 -04:00

8 lines
274 B
Bash
Executable file

#!/usr/bin/env bash
button=$(spt playback --status -f "%s" 2>/dev/null)
if [ "$button" == "▶" ]; then
echo "(image :path \"img/musicpause.png\" :image-width 40 :image-height 40)"
else
echo "(image :path \"img/musicplay.png\" :image-width 40 :image-height 40)"
fi