1 2 3 4 5 6 7 8
#!/bin/sh if mpc | grep -q '\[playing\]' then mpc --no-status pause else mpc --no-status play fi
Consider giving Nix/NixOS a try! <3