dotfiles/dot_config/zsh/dot_zprofile.tmpl

9 lines
245 B
Cheetah

{{ if .desktop -}}
initfile="$XDG_CONFIG_HOME/X11/xinitrc"
logdir="$XDG_DATA_HOME/X11"
logfile="$logdir/xinit.log"
mkdir -p "$logdir"
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && \
exec startx "$initfile" -- -keeptty > "$logfile" 2>&1
{{- end }}