summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-11-30 22:19:01 +0100
committerAhmed Abdelhalim <[email protected]>2025-11-30 22:19:01 +0100
commit52ab92862f0c5878e964d2be37760519f7a32026 (patch)
treec678cf4acb136f6717028af2504323603930b3d9
parentaacdd107162c4475128c024473457ed7090b08b0 (diff)
Fix hyprland breaking ssh
-rw-r--r--.bash_profile3
1 files changed, 2 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile
index 4eab62b..f5fc89b 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -80,7 +80,8 @@ homebrew_token() {
}
# ==== Hyprland auto start
-if command -v Hyprland 1>/dev/null 2>&1; then
+# Only strart hyprland on tty1 without X11/Wayland display
+if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = "1" ]; then
exec Hyprland
fi