mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-06 05:29:42 +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
|