Skip to content

Instantly share code, notes, and snippets.

@daisycamber
Created July 16, 2024 08:36
Show Gist options
  • Save daisycamber/4a53a84334302b325078927650d82552 to your computer and use it in GitHub Desktop.
Save daisycamber/4a53a84334302b325078927650d82552 to your computer and use it in GitHub Desktop.
/etc/systemd/system/sleep_wake.service
[Install]
WantedBy=sleep.target
[Unit]
After=systemd-suspend.service systemd-hybrid-sleep.service systemd-hibernate.service
[Service]
Type=forking
ExecStart=/bin/bash -c 'i3lock'
User=daisy
Environment=DISPLAY=:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment