Skip to content

Instantly share code, notes, and snippets.

@advilm
Last active September 27, 2024 07:56
Show Gist options
  • Select an option

  • Save advilm/f8d4ba12e34fae9090f3b47e8b0836a3 to your computer and use it in GitHub Desktop.

Select an option

Save advilm/f8d4ba12e34fae9090f3b47e8b0836a3 to your computer and use it in GitHub Desktop.
Just some files relating to my i3lock setup
# /etc/systemd/system/[email protected]
[Unit]
Description=Lock screen when waking up
Before=sleep.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
[Service]
User=%I
Type=forking
Environment=DISPLAY=:0
ExecStart=i3lock
ExecStartPost=/usr/bin/sleep 1
[Install]
WantedBy=sleep.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
# /etc/pam.d/i3lock
auth sufficient pam_unix.so try_first_pass likeauth nullok
auth sufficient pam_fprintd.so
auth include system-auth
# Note: even without the nullok it still requires you to press enter to use fingerprint
# Not sure why
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment