From 04b04bb72f83a0daa52aeccb4818cb3ee22b3437 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Tue, 19 Sep 2017 16:05:30 +0200 Subject: [PATCH] fish: start x at tty1 login --- shells/fish/config.fish | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/shells/fish/config.fish b/shells/fish/config.fish index 037880a..26e09e4 100644 --- a/shells/fish/config.fish +++ b/shells/fish/config.fish @@ -66,3 +66,12 @@ if test \( -n $DESKTOP_SESSION \) -a \( $DESKTOP_SESSION = "stumpwm" \) exec screen -r end end + +# Automatically start X at login +# source: https://wiki.archlinux.org/index.php/Fish#Start_X_at_login +if status --is-login + if test -z "$DISPLAY" -a $XDG_VTNR = 1 + exec startx -- -keeptty + end +end +