1# load only user interactive login2if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]] && [[ -x "$(command -v sway)" ]]; then3 if [ -d "$XDG_CONFIG_HOME/rc" ]; then4 openrc --user default5 fi67 if [[ -S $XDG_RUNTIME_DIR/bus ]]; then8 export DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus"9 exec sway10 else11 exec dbus-run-session -- sway12 fi13fi