It would be great if you could actually set some default connections right in there.
#!/bin/sh
set -euo pipefail
if systemctl --user is-active --quiet autoplug-group.target; then
systemctl --user stop autoplug-group.target
else
systemctl --user start autoplug-group.target
fi