diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-13 10:28:16 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-13 10:28:16 -0700 |
commit | c18e2084836ba68a147bb78f6ceb8c7d809038ec (patch) | |
tree | c6c37b08600c70d4f18f5fde7b001b95619f2468 | |
parent | secrets: delete duplicated files (diff) | |
download | world-c18e2084836ba68a147bb78f6ceb8c7d809038ec.tar.gz |
fish: execute sway on login on tty1
-rw-r--r-- | home/fish/default.nix | 5 |
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 |