From c4fb376e1e3599ba996e5ebf4009fe4bbf1ef5c9 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 8 Mar 2026 01:39:47 +0100 Subject: bash: Fix config for Niri --- .bash_profile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.bash_profile b/.bash_profile index 79a3224..45e7036 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,3 +1,8 @@ +readonly tty="$(tty)" [[ -f ~/.bashrc ]] && source ~/.bashrc -[[ -z "$DISPLAY" && `tty` == /dev/tty1 ]] && exec start-hyprland -[[ -z "$DISPLAY" && `tty` == /dev/tty2 ]] && exec niri-session +if [[ -z "$DISPLAY" && -z "$NIRI_LOADED" && "$tty" = /dev/tty1 ]] +then + export NIRI_LOADED=1 + exec niri-session +fi +[[ -z "$DISPLAY" && "$tty" = /dev/tty2 ]] && exec start-hyprland -- cgit v1.2.3