From 1c81d0a6c80f1f5b94c26f8fb53ca02ad2697766 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sun, 19 Jan 2025 13:44:21 +0300 Subject: [PATCH] Bash: Dont autostart sway for root. --- home/program/bash/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/program/bash/default.nix b/home/program/bash/default.nix index 73a2c9c..2b78650 100644 --- a/home/program/bash/default.nix +++ b/home/program/bash/default.nix @@ -46,7 +46,7 @@ in '' + lib.optionalString config.module.sway.enable '' # Autostart Sway. - if [[ -z $DISPLAY ]] && [[ "$(tty)" = "/dev/tty1" ]]; then + if [[ -z $DISPLAY ]] && [[ "$(tty)" = "/dev/tty1" ]] && [[ $UID != 0 ]]; then exec sway fi '';