Merge branch 'master' of gitee.com:klesh/dotfiles

This commit is contained in:
Klesh Wong 2020-11-03 11:53:59 +08:00
commit 803bf26e24
2 changed files with 12 additions and 6 deletions

View File

@ -121,9 +121,15 @@ restart() {
$FP loop &
}
if [ "$1" = "loop" ]; then
start
else
restart
fi
case "$1" in
loop)
start
;;
dryrun)
statusbar
;;
*)
restart
;;
esac

View File

@ -81,7 +81,7 @@ cat <<'EOT' > ~/.profile
export PATH=$HOME/.local/bin
# auto startx
[ -z "$DISPLAY" -a -n "$XDG_VTNR" -a "$XDG_VTNR" -eq "1" ] && exec startx
[ -z "$DISPLAY" -a -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq "1" ] && exec startx
EOT