mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-25 04:49:44 +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
|