diff --git a/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/Swap Workstation b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/Swap Workstation index 0004559..1f23b2f 100755 --- a/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/Swap Workstation +++ b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/Swap Workstation @@ -4,12 +4,17 @@ current_hostname=$(hostname) case $current_hostname in "pogmommy-apple-a2337") - alacritty -e ssh -A pogmommy-omen-328p1aa + ssh_dest="pogmommy-omen-328p1aa" ;; "pogmommy-omen-328p1aa") - alacritty -e ssh -A pogmommy-apple-a2337 + ssh_dest="pogmommy-apple-a2337" ;; *) # Code to execute if expression does not match any of the above patterns ;; esac + +alacritty -e bash -c '\ +eval $(ssh-agent) &> /dev/null; \ +ssh-add ~/.ssh/id_ed25519 &> /dev/null; \ +ssh -A '"${ssh_dest}"