mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-25 22:36:03 +00:00
15 lines
193 B
SYSTEMD
15 lines
193 B
SYSTEMD
|
/etc/systemd/system/
|
||
|
|
||
|
[Unit]
|
||
|
Description=i3lock on Lid Close
|
||
|
Before=sleep.target
|
||
|
|
||
|
[Service]
|
||
|
User=
|
||
|
Type=forking
|
||
|
Environment=DISPLAY=:0
|
||
|
ExecStart=/usr/bin/i3lock
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=sleep.target
|