#!/bin/bash
playerstatus=$(playerctl status)
echo "$playerstatus"
if [[ "$playerstatus" = "Playing" ]]
then
playerctl -a stop
exit 0
fi
if [[ "$playerstatus" = "Stopped" ]]
playerctl play