xscreensaver-systemd is now integrated in XcreenSaver 5.43. You probably want to use the version there, and get the latest XScreenSaver goodness while you're at it.
If you're desperate for a version that works (sort of) with an older XScreenSaver, see the old branch.
This is a small utility providing systemd integration for XScreenSaver.
When run from ~/.xsession
or equivalent, this will:
- Lock the screen before the system goes to sleep (using
xscreensaver-command -lock
). - Ensure the XScreenSaver password dialog is shown after the system is resumed (using
xset
to force the screen to power on followed byxscreensaver-command -deactivate
).
This is implemented using the recommended way to do these things nowadays, namely inhibitor locks. sd-bus is used for DBUS communication, so the only dependency is libsystemd
(which you already have if you want this).