From 0fd369e338d2d07a86ad8bf3b3b46166acad8486 Mon Sep 17 00:00:00 2001 From: har0ke Date: Wed, 30 Nov 2022 00:42:38 +0100 Subject: [PATCH] Run startx on tty1 after login --- .zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.zshrc b/.zshrc index d1653b9..0d5bfec 100644 --- a/.zshrc +++ b/.zshrc @@ -100,5 +100,6 @@ source $ZSH/oh-my-zsh.sh # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" # +if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi PATH="$HOME/.dotfiles/scripts:${PATH}"