dotfiles/.config/i3/toggleplay.sh
2020-01-19 15:02:54 -07:00

16 lines
264 B
Bash
Executable file

#!/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