From c18e2084836ba68a147bb78f6ceb8c7d809038ec Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 13 Apr 2022 10:28:16 -0700 Subject: fish: execute sway on login on tty1 --- home/fish/default.nix | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit 1.4.1