1 2 3 4 5
# warning: this is specific to my niri machines... if [[ $- == *i* && $(tty) == /dev/tty1 && -z ${WAYLAND_DISPLAY:-} && -z ${DISPLAY:-} ]]; then exec niri-session fi