Created
October 6, 2021 13:51
-
-
Save NewRedsquare/a52a62f86d111ec074bdc62aa5c6d66f to your computer and use it in GitHub Desktop.
Cinnamon lock screen when Yubikey is removed
This file contains 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
ACTION=="remove", ENV{ID_MODEL}=="YubiKey_OTP+FIDO+CCID", RUN+="/bin/su $USER -c 'DISPLAY=:0 /usr/bin/cinnamon-screensaver-command -a'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment