dotfiles/dot_config/zsh/dot_zprofile.tmpl

9 lines
245 B
Cheetah
Raw Normal View History

2022-07-21 00:03:41 -04:00
{{ if .desktop -}}
2021-02-15 20:53:16 -05:00
initfile="$XDG_CONFIG_HOME/X11/xinitrc"
logdir="$XDG_DATA_HOME/X11"
logfile="$logdir/xinit.log"
mkdir -p "$logdir"
2021-02-15 20:53:16 -05:00
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && \
exec startx "$initfile" -- -keeptty > "$logfile" 2>&1
2022-07-21 00:03:41 -04:00
{{- end }}