about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-13 10:28:16 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-13 10:28:16 -0700
commitc18e2084836ba68a147bb78f6ceb8c7d809038ec (patch)
treec6c37b08600c70d4f18f5fde7b001b95619f2468
parentsecrets: delete duplicated files (diff)
downloadworld-c18e2084836ba68a147bb78f6ceb8c7d809038ec.tar.gz
fish: execute sway on login on tty1
-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