15 lines
713 B
Desktop File
15 lines
713 B
Desktop File
# This unit is pulled in by idle.target, but can be masked if idle hinting is not desired or if another program already provides it.
|
|
# This service should be preferred to other mechanisms, however, as it provides synchronization between the idle target and the logind
|
|
# state, which is generally what is desired.
|
|
|
|
[Unit]
|
|
Description=systemd-logind idle hint synchronization
|
|
PartOf=idle.target
|
|
Before=idle.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=busctl call org.freedesktop.login1 /org/freedesktop/login1/session/auto org.freedesktop.login1.Session SetIdleHint b 1
|
|
ExecStop=busctl call org.freedesktop.login1 /org/freedesktop/login1/session/auto org.freedesktop.login1.Session SetIdleHint b 0
|