From f735f37d03bc3e01a3b186e6ea0b757fbc2f033c Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 16 May 2021 02:13:36 -0400 Subject: [PATCH] Add function start_x_at_login --- .config/fish/functions/start_x_at_login.fish | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .config/fish/functions/start_x_at_login.fish diff --git a/.config/fish/functions/start_x_at_login.fish b/.config/fish/functions/start_x_at_login.fish new file mode 100644 index 0000000..94b20e1 --- /dev/null +++ b/.config/fish/functions/start_x_at_login.fish @@ -0,0 +1,7 @@ +function start_x_at_login + if status is-login + if test -z "$DISPLAY" -a "$XDG_VTNR" = 1 + exec startx -- -keeptty + end + end +end