[SOLVED] xlock+suspend with systemd

view story

https://bbs.archlinux.org – Thank you for the input, lahwaacz. I took your simlock.service and adjusted it to use xlock, which works like a charm.[Unit] Description=Lock X session using xlock [Service] User=fixje Environment=DISPLAY=:0 ExecStart=/usr/bin/xlock -mode blank -bg black -fg green [Install] WantedBy=sleep.targetCreating a service seems to be the most elegant solution as you don't have to fiddle around in /usr/lib. fixje https://bbs.archlinux.org/profile.php?id=33967 2012-09-12T20:47:16Z (HowTos)