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,8 +2,10 @@
{ {
environment.loginShellInit = # sh environment.loginShellInit = # sh
'' ''
if uwsm check may-start; then if [[ -z "$SSH_CLIENT" && -z "$SSH_CONNECTION" ]]; then
exec uwsm start hyprland-uwsm.desktop if uwsm check may-start; then
exec uwsm start hyprland-uwsm.desktop
fi
fi fi
''; '';