diff options
Diffstat (limited to '.bash_profile')
| -rw-r--r-- | .bash_profile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile index 326d8a6..7df32b7 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,2 +1,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 -[[ -z "$DISPLAY" && `tty` == /dev/tty1 ]] && exec Hyprland +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 |