dotfiles/services/xidlehook.service

14 lines
421 B
SYSTEMD
Raw Permalink Normal View History

2021-04-27 23:25:21 +03:00
[Unit]
Description=Lock the screen automatically after a timeout.
[Service]
Type=simple
#User=lanxu
#Group=users
Environment=DISPLAY=:0
ExecStart=/usr/bin/xidlehook --not-when-fullscreen --not-when-audio --timer 60 'notify-send -u low "Locking in 15 seconds..."' '' --timer 15 'i3lock -B sigma -k' '' --timer 60 'xset dpms force off' 'xset dpms force on'
Restart=always
RestartSec=60
[Install]
WantedBy=graphical.target