From 7b615ff2d601c5470cd5e8e07c2e43b6cf8fa9ec Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sun, 6 Apr 2025 13:32:13 +0800 Subject: [PATCH] fix(hyprland): add tty check to not launch hyprland on ssh --- modules/programs/hyprland.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/programs/hyprland.nix b/modules/programs/hyprland.nix index 54f3715..6d0574d 100644 --- a/modules/programs/hyprland.nix +++ b/modules/programs/hyprland.nix @@ -2,8 +2,10 @@ { environment.loginShellInit = # sh '' - if uwsm check may-start; then - exec uwsm start hyprland-uwsm.desktop + if [[ -z "$SSH_CLIENT" && -z "$SSH_CONNECTION" ]]; then + if uwsm check may-start; then + exec uwsm start hyprland-uwsm.desktop + fi fi '';