Configure SSH and GPG agents on Sway
This commit is contained in:
@@ -91,6 +91,8 @@ exec flameshot
|
|||||||
# Simulate master layout
|
# Simulate master layout
|
||||||
exec autotiling --limit 2
|
exec autotiling --limit 2
|
||||||
|
|
||||||
|
exec dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY
|
||||||
|
|
||||||
#----------------#
|
#----------------#
|
||||||
# set gtk+ theme #
|
# set gtk+ theme #
|
||||||
#----------------#
|
#----------------#
|
||||||
|
|||||||
@@ -22,4 +22,4 @@ start_keychain() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
start_keychain "$HOME/.ssh/id_ed25519_nymph"
|
# start_keychain "$HOME/.ssh/id_ed25519_nymph"
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
|
|||||||
# Session Type for later screensharing
|
# Session Type for later screensharing
|
||||||
export XDG_SESSION_TYPE=wayland
|
export XDG_SESSION_TYPE=wayland
|
||||||
|
|
||||||
|
# SSH socket
|
||||||
|
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"
|
||||||
|
|
||||||
exec dbus-launch --exit-with-session sway
|
exec dbus-launch --exit-with-session sway
|
||||||
else
|
else
|
||||||
echo "Cannot found dbus session: Sway don't work"
|
echo "Cannot found dbus session: Sway don't work"
|
||||||
|
|||||||
Reference in New Issue
Block a user