Update sway to start by default
diff --git a/scripts/rebuild-home.sh b/scripts/rebuild-home.sh
index 5ed1b56..bee1c4b 100755
--- a/scripts/rebuild-home.sh
+++ b/scripts/rebuild-home.sh
@@ -5,7 +5,7 @@
if [[ $(git diff --stat) != '' ]]; then
read -ep "What did you change?: " changes
git add .
- /bin/env git commit -am "$changes"
+ /usr/bin/env git commit -am "$changes"
fi
nix build .#homeManagerConfigurations.minion.activationPackage $1 --impure
diff --git a/src/apps/personal/sway.nix b/src/apps/personal/sway.nix
index 24e0ad2..564ebf7 100644
--- a/src/apps/personal/sway.nix
+++ b/src/apps/personal/sway.nix
@@ -24,4 +24,10 @@
wants = [ "graphical-session-pre.target" ];
after = [ "graphical-session-pre.target" ];
};
+
+ programs.zsh.profileExtra = ''
+ if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
+ exec systemd-cat -t sway sway
+ fi
+ '';
}
\ No newline at end of file