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:
[Unit]
Description=Local system suspend actions
Before=sleep.target
[Service]
User=mm
Environment=DISPLAY=:0
ExecStart=/usr/bin/xautolock -locknow
[Install]
WantedBy=sleep.target
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?
Greets
Marcus