#!/bin/bash
#start wireplumber on KDE since systemd user daemon won't start
INITCHECK=$(/usr/bin/ps -p 1 -o cmd -h)
echo $INITCHECK
if [ "$INITCHECK" != "/lib/systemd/systemd" ]; then 
	exit 0
fi

#try to start wireplumber all the time
if [ -z "$(pgrep -x -u $USER wireplumber)" ]; then
    echo "start wireplumber"
	/usr/bin/wireplumber &
fi

exit 0
