From 997b98519007d32691a5d797b2b6f9072f94beb9 Mon Sep 17 00:00:00 2001 From: Ryan Chan Date: Mon, 29 Nov 2021 22:28:48 +0000 Subject: [PATCH] Start GNOME Keyring on starting X session --- bash/.bashrc | 2 ++ sxhkd/sxhkdrc | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bash/.bashrc b/bash/.bashrc index c0b2a2f..7fba53d 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -13,6 +13,8 @@ PS1="[\u@\h:\w]\$ " # Set SSH_AUTH_SOCK so that SSH will use gpg-agent instead of ssh-agent. unset SSH_AGENT_PID if [[ -z "$SSH_AUTH_SOCK" ]]; then + # https://wiki.archlinux.org/title/GNOME/Keyring#xinitrc + eval "$(gnome-keyring-daemon --start --components=pkcs11,secrets)" export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" fi diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc index 3d1cf3b..1914ee3 100644 --- a/sxhkd/sxhkdrc +++ b/sxhkd/sxhkdrc @@ -7,11 +7,14 @@ super + Return st -e tmux -2 super + shift + Return - st -e tmux -2 attach-session + st -e tmux -2 attach-session super + r firefox +super + e + mailspring + # Reload sxhkd configs. super + Escape pkill -USR1 -x sxhkd -- 2.38.5