Commit Graph
4 Commits
Author SHA1 Message Date
Daniele Fucini a36e700df6 Add type hints and ruff/mypy config
Annotate all functions and check them with mypy --strict (needs
python-pygobject-stubs). pyproject.toml holds only tool config since
the PKGBUILD installs the script directly.
2026-10-16 17:21:34 +02:00
Daniele Fucini 0234456af8 Log SimulateUserActivity once per burst
Steam calls it thousands of times per hour during controller play, which made up
~98% of the journal. Log the first call and a summary with the count after 5
minutes of quiet, when the client leaves, or on shutdown.
2026-10-15 23:38:52 +02:00
Daniele Fucini d862eb49da Pause X screen blanking while an inhibit is active
Browsers don't pause X blanking themselves, so the screen still went
black after 10 minutes even with xautolock disabled. Use
XScreenSaverSuspend (MIT-SCREEN-SAVER) instead of xset: no global
setting is changed, and the X server ends the pause on its own if the
daemon exits or crashes. The suspend also holds off DPMS.

Add libx11 and libxss to depends.
2026-10-09 21:11:21 +02:00
Daniele Fucini 90b8838835 Initial version of xautolock-inhibit
Own org.freedesktop.ScreenSaver on the session bus and translate
Inhibit/UnInhibit into xautolock -disable/-enable. Cookies are tracked
per sender and released when the sender leaves the bus. Inhibits with
an ignored reason ("Playing audio" by default) are logged but don't
block locking. xautolock is re-enabled on exit.

Add systemd user unit, PKGBUILD and LICENSE.
2026-10-09 19:49:08 +02:00