diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2026-03-08 23:17:55 +0100 |
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2026-03-08 23:17:55 +0100 |
| commit | d43942f854bd13d43d7d6643a829ff7dc8e750e0 (patch) | |
| tree | 13f75a4110ff7daa53d88efa8ec6c99caaaa32b2 /.bash_profile | |
| parent | ac758e0d72ce34678d28a653ea0afc2bb8079713 (diff) | |
bash: Switch from elogind to seatd
Diffstat (limited to '.bash_profile')
| -rw-r--r-- | .bash_profile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.bash_profile b/.bash_profile index 45e7036..47c824a 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,8 +1,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 |