summaryrefslogtreecommitdiff
path: root/.bash_profile
blob: 7df32b71ac09a15e728646480ce4074dcf52469c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[[ -z "$XDG_RUNTIME_DIR" ]] && export XDG_RUNTIME_DIR="/run/user/$UID"

if [[ ! -d "$XDG_RUNTIME_DIR" ]]
then
	mkdir "$XDG_RUNTIME_DIR"
	chmod 0700 "$XDG_RUNTIME_DIR"
fi

readonly tty="$(tty)"
[[ -f ~/.bashrc ]] && source ~/.bashrc
if [[ -z "$DISPLAY" && -z "$NIRI_LOADED" && "$tty" = /dev/tty1 ]]
then
	export LIBSEAT_BACKEND=seatd
	export NIRI_LOADED=1
	[[ "$(hostname)" = "mangobox" ]] && exec dbus-run-session niri --session
	exec niri-session
fi