Skip to content

Instantly share code, notes, and snippets.

@jluttine
Last active September 29, 2019 13:05
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 jluttine/d97726c28a150070ad147ec08e263ce8 to your computer and use it in GitHub Desktop.
Save jluttine/d97726c28a150070ad147ec08e263ce8 to your computer and use it in GitHub Desktop.
systemctl --user status xidlehook
● xidlehook.service - Screen Lock Daemon
Loaded: loaded (/nix/store/531wyrgxz9wcmw3vivc60g1xwx9r0wnb-unit-xidlehook.service/xidlehook.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-09-29 15:55:53 EEST; 16s ago
Main PID: 20689 (ccypk602qzd1a81)
CGroup: /user.slice/user-1000.slice/user@1000.service/xidlehook.service
├─20689 /nix/store/l6h4ya0wzb4b8mr0y58k2gh2nhfql4sn-bash-4.4-p23/bin/bash -e /nix/store/ccypk602qzd1a81fd4485rqr8wn9sys7-unit-script-xidlehook-start
└─20690 /nix/store/wqsnqp514wyh7wig7k6scw0255w8wmhm-xidlehook-0.7.0/bin/xidlehook --not-when-fullscreen --not-when-audio --timer normal 5 /nix/store/lyf5hlrgy1s2crgy9yv52hp2qdvz0ihr-xsecurelock-1.4.0/libexec/xsecurelock/dimmer --timer primary 15 /run/wrappers/bin/sudo /nix/store/4vw3gb6dk116y38vwgjv3ymq5mfdcfli-systemd-243/bin/systemctl start physlock
@jluttine
Copy link
Author

The script:

#! /nix/store/l6h4ya0wzb4b8mr0y58k2gh2nhfql4sn-bash-4.4-p23/bin/bash -e
#!/bin/sh
/nix/store/wqsnqp514wyh7wig7k6scw0255w8wmhm-xidlehook-0.7.0/bin/xidlehook \
  --not-when-fullscreen \
  --not-when-audio \
  --timer normal 5 '/nix/store/lyf5hlrgy1s2crgy9yv52hp2qdvz0ihr-xsecurelock-1.4.0/libexec/xsecurelock/dimmer' ' ' \
  --timer primary 15 '/run/wrappers/bin/sudo /nix/store/4vw3gb6dk116y38vwgjv3ymq5mfdcfli-systemd-243/bin/systemctl start physlock' ' '

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment