Swayidle Suspend help

Hi, What is the right way of suspend to ram in labwc using swayidle?
First I use the default from labwc docs like so in the ~>/.config/labwc./autostart

exec swayidle -w \
	timeout 300 'swaylock -f -c 000000' \
	timeout 3010 'wlopm --off \*' \
	resume 'wlopm --on \*' \
	before-sleep 'swaylock -f -c 000000' >/dev/null 2>&1

It didn’t work. Then I tried systemd like so:

exec swayidle -w \ 
        timeout 300 'systemctl suspend' >/dev/null 2>&1 &
Still a no go.

Thanks in advance for your help.

I kinda solve it by using the xfce4 power manager. I remove the one from my initial post then add this xfce4-power-manager >/dev/null 2>&1 & in labwc autostart.