From 26c642760a739a3bcac350c0bbdb2aff5f9f6d47 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Fri, 2 Sep 2022 13:10:19 +0200 Subject: [PATCH] Start X if logging in on tty1 --- .zprofile | 1 + zprofile | 4 ++++ 2 files changed, 5 insertions(+) create mode 120000 .zprofile diff --git a/.zprofile b/.zprofile new file mode 120000 index 0000000..018fc86 --- /dev/null +++ b/.zprofile @@ -0,0 +1 @@ +zprofile \ No newline at end of file diff --git a/zprofile b/zprofile index aa96b0a..05fe3aa 100644 --- a/zprofile +++ b/zprofile @@ -29,3 +29,7 @@ umask 022 shopts=$- set -$shopts unset sh shopts + +if [[ $TTY == /dev/tty1 ]]; then + exec startx :1 +fi