fix the hm zsh initshell

This commit is contained in:
2022-10-09 10:35:54 +02:00
parent 87572af7db
commit 0ea8b9ed2c
3 changed files with 10 additions and 6 deletions

View File

@@ -27,7 +27,7 @@
environment = {
loginShellInit = ''
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
if [ -z $DISPLAY ] && [ $UID != 0 ] && [ "$(tty)" = "/dev/tty1" ]; then
exec Hyprland
fi
''; # Will automatically open sway when logged into tty1