summaryrefslogtreecommitdiff
path: root/.bash_profile
blob: 47c824acc6690fad6589d2c94017b4d8608a454c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[[ -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
[[ -z "$DISPLAY" && "$tty" = /dev/tty2 ]] && exec start-hyprland