icewm lockscreen on suspend

Hi all,

I am trying to set up my 13.2 machine with icewm to lock the screen on suspend. I have tried many different things including the startup of xautolock -locker “i3lock -c000000” & in combination with a systemd service like this:

Description=Local system suspend actions

ExecStart=/usr/bin/xautolock -locknow


but none of them worked. It seems that systemd is not able to act in user context. Old pm-utils hacks also do not work anymore. Do you have any ide on how to solve this?