Files
dotfiles/zsh/.zlogin
2026-01-02 22:21:13 -05:00

10 lines
326 B
Bash

# This file is sourced by zsh when a login shell is started.
# Start a Wayland session with Sway if no graphical session is running
# and the user is on the first virtual terminal (tty1).
if [[ -z $DISPLAY && -z $WAYLAND_DISPLAY && $(tty) = "/dev/tty1" ]]; then
if [[ -x "$(command -v sway)" ]]; then
exec sway
fi
fi