summaryrefslogtreecommitdiff
path: root/.config/zsh/.zprofile
blob: dc89a2eee754448dc602336bb3e992f01937db7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
if [[ -z "${XDG_RUNTIME_DIR}" ]]; then
	XDG_RUNTIME_DIR=/tmp/user/$(id -u)
	if [[ ! -d ${XDG_RUNTIME_DIR} ]]; then
		mkdir -p ${XDG_RUNTIME_DIR}
		chmod 700 ${XDG_RUNTIME_DIR}
	fi
	export XDG_RUNTIME_DIR
fi

source ~/.config/zsh/.zshenv
if [[ -z "${DISPLAY}" ]] && [[ "$(tty)" == "/dev/tty1" ]]; then
	if [[ -z "${SSH_AGENT_PID}" ]]; then
		eval $(ssh-agent)
	fi
	#exec startx "$XDG_CONFIG_HOME/X11/xinitrc" -- vt1
	#openrc -U default
	exec xinit -- -nolisten tcp -keeptty vt1
fi