Update login script

This commit is contained in:
Natsu Kagami 2024-06-03 03:32:53 +02:00
parent 3ebdd014b8
commit 7d8d80c6a3
Signed by: nki
GPG key ID: 55A032EB38B49ADB

View file

@ -10,10 +10,10 @@ let
set -x GUM_CHOOSE_HEADER "Select the Desktop to boot into:" set -x GUM_CHOOSE_HEADER "Select the Desktop to boot into:"
set CHOICES set CHOICES
if which sway >/dev/null if which sway &>/dev/null
set -a CHOICES "sway" set -a CHOICES "sway"
end end
if which startplasma-wayland >/dev/null if which startplasma-wayland &>/dev/null
set -a CHOICES "KDE Plasma" set -a CHOICES "KDE Plasma"
end end
set -a CHOICES "None: continue to shell" set -a CHOICES "None: continue to shell"
@ -24,7 +24,7 @@ let
case "KDE Plasma" case "KDE Plasma"
exec dbus-run-session startplasma-wayland exec dbus-run-session startplasma-wayland
case '*' case '*'
exit 255 exec fish -i
end end
''; '';
in in
@ -150,10 +150,7 @@ in
interactiveShellInit = '' interactiveShellInit = ''
# Sway! # Sway!
if status --is-login; and test -z $DISPLAY; and test (tty) = "/dev/tty1" if status --is-login; and test -z $DISPLAY; and test (tty) = "/dev/tty1"
${bootDesktop} exec ${bootDesktop}
if test $status -eq 0
exit 0
end
end end
function fish_greeting function fish_greeting