xprofile: Auto-unlock Gnome keyring (and use it as SSH key agent)

This commit is contained in:
Lexi / Zoe 2022-03-19 18:19:35 +01:00
parent 89297b5ebc
commit aec57cbdcd
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ xmodmap -e "keysym Menu = Super_R"
# Register screen locker
xss-lock -- i3lock -n -eft -i ~/.wallpapers/lockscreen &
# Auto-unlock Gnome keyring (and use it as SSH key agent)
eval $(gnome-keyring-daemon --start)
export SSH_AUTH_SOCK
# Start polkit authentication agent
POLKIT_AUTH_AGENT=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
[ -f $POLKIT_AUTH_AGENT ] && $POLKIT_AUTH_AGENT &