From 86c055c993dafc41d3e99ac6852a4f27f82145d8 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Fri, 19 Jul 2019 13:14:33 +0300 Subject: [PATCH] Fixes --- .config/pam_pkcs11/card_eventmgr.conf | 2 +- .config/sway/config | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/pam_pkcs11/card_eventmgr.conf b/.config/pam_pkcs11/card_eventmgr.conf index 02fef02..17f0f21 100644 --- a/.config/pam_pkcs11/card_eventmgr.conf +++ b/.config/pam_pkcs11/card_eventmgr.conf @@ -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 diff --git a/.config/sway/config b/.config/sway/config index 10b6258..4622107 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -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