if [ "$(tty)" = "/dev/tty1" ]
then
    export MOZ_ENABLE_WAYLAND=1
    export XDG_SESSION_TYPE=wayland
    export XDG_CURRENT_DESKTOP=sway
    export QT_QPA_PLATFORM=wayland
    export CLUTTER_BACKEND=wayland
    export SDL_VIDEODRIVER='wayland,x11'
    # avoid lagging cursor under load
    export WLR_NO_HARDWARE_CURSOR=1
    exec sway
fi
