forked from logan/dotfiles
17 lines
264 B
Bash
17 lines
264 B
Bash
|
#!/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
|