Skip to content

Instantly share code, notes, and snippets.

@daisycamber
Last active December 6, 2023 04:21
Show Gist options
  • Save daisycamber/c008c88f849c4bc6cf5ddabb72865325 to your computer and use it in GitHub Desktop.
Save daisycamber/c008c88f849c4bc6cf5ddabb72865325 to your computer and use it in GitHub Desktop.
run i3lock on wake from sleep
[Unit]
WantedBy=sleep.target
After=systemd-suspend.service systemd-hybrid-sleep.service systemd-hibernate.service
[Service]
Type=forking
ExecStart=/bin/bash -c 'i3lock'
User=daisy
Environment=DISPLAY=:0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment