From 65ccdc1f6331f7cda5917d3c4bdcae8c485e44b0 Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Sun, 28 Jan 2024 05:35:18 -0500 Subject: [PATCH] Moved sway shellHook to gui module --- homeConfig/modules/bash/config/bashprofile.nix | 3 --- homeConfig/modules/gui/config/shellHook.nix | 5 +++++ homeConfig/modules/gui/default.nix | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 homeConfig/modules/gui/config/shellHook.nix 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;