10 lines
326 B
Bash
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
|