about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--home/fish/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/home/fish/default.nix b/home/fish/default.nix
index a3a5e1e..bbaddce 100644
--- a/home/fish/default.nix
+++ b/home/fish/default.nix
@@ -9,6 +9,11 @@ in {
     interactiveShellInit = ''
       set fish_greeting
 
+      # Execute sway on login on tty1
+      if [ -z $DISPLAY ] && [ "$(tty)" == "/dev/tty1" ]; then
+        exec sway
+      fi
+
       # Tmux on terminal start
       if status is-interactive
       and not set -q TMUX