diff options
| -rw-r--r-- | .bash_profile | 9 |
1 files 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 |