Configure SSH and GPG agents on Sway

This commit is contained in:
Fabio Scotto di Santolo
2025-08-13 22:44:05 +02:00
parent 06cb3ae74b
commit a68329c36c
3 changed files with 6 additions and 1 deletions

View File

@@ -91,6 +91,8 @@ exec flameshot
# Simulate master layout
exec autotiling --limit 2
exec dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY
#----------------#
# set gtk+ theme #
#----------------#

View File

@@ -22,4 +22,4 @@ start_keychain() {
fi
}
start_keychain "$HOME/.ssh/id_ed25519_nymph"
# start_keychain "$HOME/.ssh/id_ed25519_nymph"

View File

@@ -47,6 +47,9 @@ if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
# Session Type for later screensharing
export XDG_SESSION_TYPE=wayland
# SSH socket
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"
exec dbus-launch --exit-with-session sway
else
echo "Cannot found dbus session: Sway don't work"