fix(hyprland): add tty check to not launch hyprland on ssh

This commit is contained in:
Mohammad Rafiq 2025-04-06 13:32:13 +08:00
parent 9355a9c12f
commit 7b615ff2d6
No known key found for this signature in database

View file

@ -2,9 +2,11 @@
{
environment.loginShellInit = # sh
''
if [[ -z "$SSH_CLIENT" && -z "$SSH_CONNECTION" ]]; then
if uwsm check may-start; then
exec uwsm start hyprland-uwsm.desktop
fi
fi
'';
programs.hyprland = {