logansdotfiles/.config/i3/toggleplay.sh

17 lines
264 B
Bash
Raw Normal View History

2020-01-19 17:02:54 -05:00
#!/bin/bash
for i in $(playerctl -l); do
if [ "$(playerctl -p $i status)" == "Playing" ]; then
playerctl -a pause
break
else
playerctl play
fi
done
#if [ "$(playerctl status)" == "Playing" ]; then
# playerctl pause
#else
# playerctl play
#fi