File: xtrlock.service

package info (click to toggle)
xtrlock 2.12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 144 kB
  • sloc: ansic: 269; makefile: 18; sh: 1
file content (28 lines) | stat: -rw-r--r-- 618 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Example systemd service to lock screen on sleep/suspend
#
# To install:
#
#  * Copy this file to /etc/systemd/system/xtrlock.service
#  * Replace the "FIXME" entries.
#  * Run: sudo systemctl enable xtrlock
# 
# As user units cannot depend on system units, we cannot provide this via the
# per-user systemd instance.
#
#  -- Chris Lamb <lamby@debian.org>  Tue, 06 Aug 2019 16:05:59 +0100

[Unit]
Description=Lock screen
Requires=network.target
After=sleep.target
DefaultDependencies=no

[Service]
ExecStart=/usr/bin/xtrlock
User=FIXME
Group=FIXME
Environment=DISPLAY=:0
Type=oneshot

[Install]
WantedBy=sleep.target