iso-profiles/mabox-linux/desktop-overlay/etc/systemd/system/betterlockscreen@.service

16 lines
304 B
INI
Raw Permalink Normal View History

2020-02-20 01:35:02 +01:00
[Unit]
Description = Lock screen when going to sleep/suspend
Before=sleep.target
Before=suspend.target
[Service]
User=%I
Type=simple
Environment=DISPLAY=:0
ExecStart=/usr/bin/betterlockscreen --lock
TimeoutSec=infinity
ExecStartPost=/sbin/sleep 1
[Install]
WantedBy=sleep.target
WantedBy=suspend.target