Skip to content

Instantly share code, notes, and snippets.

@andir
Last active October 29, 2018 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andir/5db0a0a17e1e87ceefd65bfa57a3d345 to your computer and use it in GitHub Desktop.
Save andir/5db0a0a17e1e87ceefd65bfa57a3d345 to your computer and use it in GitHub Desktop.
systemctl --user cat xautolock-session.service
# /nix/store/hnvi6wzvj9cvxzq4zqx1zkr91njnij9l-xautolock-session.service/xautolock-session.service
[Install]
WantedBy=graphical-session.target
[Service]
ExecStart=/nix/store/b3iwwm5nvvg0gjcjrgpcyhmd0pzjcjn3-xautolock-2.2/bin/xautolock \
-detectsleep \
-time 10 \
-locker '/nix/store/h3pzqhlqsfh3vads4f0m8abp6pjr45jx-systemd-239/bin/loginctl lock-session $XDG_SESSION_ID' \
[Unit]
After=graphical-session-pre.target
Description=xautolock, session locker service
PartOf=graphical-session.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment