[feature] auto startx

This commit is contained in:
Klesh Wong 2020-11-01 01:36:55 +08:00
parent 9e76d7c536
commit 9861ebe5d2

View File

@ -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