dotfiles/other-files/suspend@.service

13 lines
229 B
SYSTEMD
Raw Permalink Normal View History

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