This commit is contained in:
Arti Zirk 2019-07-19 13:14:33 +03:00
parent c501700ee0
commit 86c055c993
2 changed files with 4 additions and 1 deletions

View File

@ -34,7 +34,7 @@ card_eventmgr {
action =
"if gpg-connect-agent 'SCD SERIALNO' /bye | grep -q 'S SERIALNO'; then sleep 1; if gpg-connect-agent 'SCD SERIALNO' /bye | grep -q 'S SERIALNO'; then exit 1; else exit 0; fi; fi",
"pacat --volume=65536 --file-format=oga /usr/share/sounds/freedesktop/stereo/device-removed.oga",
"loginctl lock-sessions", "echo LOCK";
"loginctl lock-session", "echo LOCK";
}
# Too much time locked session

View File

@ -56,6 +56,9 @@ exec ~/.bin/polkit-agent
# Dropbox
exec ~/code/dropbox-filesystem-fix/dropbox_start.py
# fix env variables for xdg-desktop-portal
exec dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
# React to smart card events
exec card_eventmgr config_file=.config/pam_pkcs11/card_eventmgr.conf