2023-02-24 01:24:59 +00:00
|
|
|
# vim: ft=sh
|
|
|
|
|
|
|
|
## Configure static SSH Agent
|
2024-03-08 21:23:54 +00:00
|
|
|
export SSH_AUTH_SOCK="$HOME/.local/state/ssh-agent.sock"
|
2023-07-06 16:21:45 +00:00
|
|
|
if [ -e "$SSH_AUTH_SOCK" ]; then
|
|
|
|
rm "$SSH_AUTH_SOCK"
|
2022-12-12 19:48:42 +00:00
|
|
|
fi
|
2024-03-08 21:23:54 +00:00
|
|
|
if [ -e "$HOME/.local/state/ssh-agent.env" ]; then
|
|
|
|
rm "$HOME/.local/state/ssh-agent.env"
|
2022-12-12 19:48:42 +00:00
|
|
|
fi
|
2023-06-28 03:55:56 +00:00
|
|
|
if [[ "$(pgrep ssh-agent)" ]]; then
|
|
|
|
pkill ssh-agent
|
2022-12-12 19:48:42 +00:00
|
|
|
fi
|
2023-07-06 16:21:45 +00:00
|
|
|
. ${HOME}/scripts/ssh-agent.sh
|
2022-12-12 19:48:42 +00:00
|
|
|
|
|
|
|
# Static/predictable Sway socket
|
2024-03-08 21:23:54 +00:00
|
|
|
export SWAYSOCK="$HOME/.local/state/sway-ipc.sock"
|
2023-06-28 03:55:56 +00:00
|
|
|
#export SWAYSOCK="`sway --get-socketpath`"
|