You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
222 B
13 lines
222 B
[Unit]
|
|
Description=Lock screen before suspend
|
|
Before=sleep.target
|
|
|
|
[Service]
|
|
User=%I
|
|
Type=simple
|
|
Environment=DISPLAY=:0
|
|
ExecStart=/usr/bin/xautolock -locknow
|
|
ExecStartPost=/usr/bin/sleep 1
|
|
|
|
[Install]
|
|
WantedBy=sleep.target
|
|
|