From 7d8d80c6a3f0d6fee368ec83a521b0fe072703bd Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Mon, 3 Jun 2024 03:32:53 +0200 Subject: [PATCH] Update login script --- home/fish/fish.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/home/fish/fish.nix b/home/fish/fish.nix index 5b11bfe..3d6e8bd 100644 --- a/home/fish/fish.nix +++ b/home/fish/fish.nix @@ -10,10 +10,10 @@ let set -x GUM_CHOOSE_HEADER "Select the Desktop to boot into:" set CHOICES - if which sway >/dev/null + if which sway &>/dev/null set -a CHOICES "sway" end - if which startplasma-wayland >/dev/null + if which startplasma-wayland &>/dev/null set -a CHOICES "KDE Plasma" end set -a CHOICES "None: continue to shell" @@ -24,7 +24,7 @@ let case "KDE Plasma" exec dbus-run-session startplasma-wayland case '*' - exit 255 + exec fish -i end ''; in @@ -150,10 +150,7 @@ in interactiveShellInit = '' # Sway! if status --is-login; and test -z $DISPLAY; and test (tty) = "/dev/tty1" - ${bootDesktop} - if test $status -eq 0 - exit 0 - end + exec ${bootDesktop} end function fish_greeting