From 9861ebe5d2b2fec7bc5ef8fc1ec2b99f2385b3ad Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sun, 1 Nov 2020 01:36:55 +0800 Subject: [PATCH] [feature] auto startx --- suckless/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/suckless/install.sh b/suckless/install.sh index a951f3d..a71c813 100755 --- a/suckless/install.sh +++ b/suckless/install.sh @@ -75,6 +75,13 @@ while :; do done EOT +cat <<'EOT' > ~/.profile +#!/bin/sh + +# auto startx +[ -z "$DISPLAY" -a -n "$XDG_VTNR" -a "$XDG_VTNR" -eq "1" ] && exec startx +EOT + # config dwm [[ -L $XDG_CONFIG_HOME/dwm/autostart ]] && rm $XDG_CONFIG_HOME/dwm/autostart