1
0
mirror of https://gitlab.com/dbrw/ansible-setup.git synced 2025-08-04 10:15:44 +07:00
ansible-setup/roles/common/files/user_home/.zlogin
2022-07-11 16:34:50 +07:00

7 lines
147 B
Bash

#!/usr/bin/env bash
# Run X on stratup only on /dev/tty1
if [[ "$(tty)" == "/dev/tty1" && ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi