diff --git a/homeConfig/modules/bash/config/bashprofile.nix b/homeConfig/modules/bash/config/bashprofile.nix index 99ae4de..2008d53 100644 --- a/homeConfig/modules/bash/config/bashprofile.nix +++ b/homeConfig/modules/bash/config/bashprofile.nix @@ -1,5 +1,2 @@ '' -if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then - exec sway -fi '' diff --git a/homeConfig/modules/gui/config/shellHook.nix b/homeConfig/modules/gui/config/shellHook.nix new file mode 100644 index 0000000..6591bcf --- /dev/null +++ b/homeConfig/modules/gui/config/shellHook.nix @@ -0,0 +1,5 @@ +'' +if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then + exec sway +fi +'' diff --git a/homeConfig/modules/gui/default.nix b/homeConfig/modules/gui/default.nix index c75e5b3..7b2a22e 100644 --- a/homeConfig/modules/gui/default.nix +++ b/homeConfig/modules/gui/default.nix @@ -9,6 +9,7 @@ in config = mkIf cfg.enable { wayland.windowManager.sway = import ./config/sway.nix { inherit pkgs config lib; }; programs.rofi = import ./config/rofi.nix { inherit pkgs config lib; }; + programs.bash.profileExtra = import ./config/shellHook.nix; gtk = { enable = true;