Last active
September 27, 2024 07:56
-
-
Save advilm/f8d4ba12e34fae9090f3b47e8b0836a3 to your computer and use it in GitHub Desktop.
Just some files relating to my i3lock setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /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