2023-11-19 14:34:47 -06:00
|
|
|
[Unit]
|
2023-11-20 00:48:36 -06:00
|
|
|
Description=User suspend actions
|
2023-11-19 14:34:47 -06:00
|
|
|
Before=sleep.target
|
|
|
|
|
|
|
|
[Service]
|
2023-11-20 00:48:36 -06:00
|
|
|
User=%Install
|
|
|
|
Type-forking
|
2023-11-19 14:34:47 -06:00
|
|
|
Environment=DISPLAY=:0
|
2023-11-20 00:48:36 -06:00
|
|
|
ExecStartPre=/usr/bin/i3lock -c 202f56
|
|
|
|
ExecStart=/usr/bin/systemctl suspend
|
2023-11-19 14:34:47 -06:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=sleep.target
|