2017-02-07 15:06:49 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Lock screen before suspend
|
|
|
|
Before=sleep.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=%I
|
|
|
|
Type=simple
|
2017-02-07 15:47:32 +00:00
|
|
|
Environment=DISPLAY=:0
|
2017-02-07 15:06:49 +00:00
|
|
|
ExecStart=/usr/bin/xautolock -locknow
|
2017-02-07 15:47:32 +00:00
|
|
|
ExecStartPost=/usr/bin/sleep 1
|
2017-02-07 15:06:49 +00:00
|
|
|
|
|
|
|
[Install]
|
2017-02-07 15:47:32 +00:00
|
|
|
WantedBy=sleep.target
|