Bash: Dont autostart sway for root.
This commit is contained in:
parent
2ec4a35e0c
commit
1c81d0a6c8
|
@ -46,7 +46,7 @@ in
|
||||||
''
|
''
|
||||||
+ lib.optionalString config.module.sway.enable ''
|
+ lib.optionalString config.module.sway.enable ''
|
||||||
# Autostart Sway.
|
# Autostart Sway.
|
||||||
if [[ -z $DISPLAY ]] && [[ "$(tty)" = "/dev/tty1" ]]; then
|
if [[ -z $DISPLAY ]] && [[ "$(tty)" = "/dev/tty1" ]] && [[ $UID != 0 ]]; then
|
||||||
exec sway
|
exec sway
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue