new linux workstation
This commit is contained in:
11
zsh/.zlogin
11
zsh/.zlogin
@@ -1,4 +1,9 @@
|
||||
if [[ ! $DISPLAY && $(tty) = "/dev/tty1" ]]; then
|
||||
startx
|
||||
exit
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user