forked from logan/dotfiles
16 lines
264 B
Bash
Executable file
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
|