NSEVL5PUWABPDF6TBGKLP7DZBUU7TXRVMQ24AFSCOVE45WUV2NIAC # if test "$XDG_SESSION_TYPE" != "tty"# return# endif test -n "$DISPLAY" || test -n "$WAYLAND_DISPLAY" || test -n "$MIR_SOCKET"return
# disable on non login shells and remoteif not status --is-login; or set -q SSH_CLIENT SSH_TTYecho "can't run here" >&2return 1
if test -n "$SSH_CLIENT" || test -n "$SSH_TTY"return
# populate listset -l sessionsfor f in /usr/share/{wayland-,}sessions/*.desktopset bin (grep -m1 "^Exec=" $f | cut -d= -f2- | string split " ")[1]command -q $bin; or continueset -a sessions (string join \t (grep -m1 "^Name=" $f | cut -d= -f2-) $f)
if command -q fzf# list installed known display managersset wms startx sway hyprland niriset insfor wm in $wmsif command -q $wmset -a ins "$wm"endend# select and runif set -q ins[1]set sel (string join \n $ins | fzf --inline-info)if contains $sel $insstartwm $selelseecho "no wm selected"endelsevecho "no wm found"endelsevecho "fzf not installed"
# greeterset sel (string join \n $sessions | fzf --with-nth=1 --delimiter=\t --inline-info --query "$wm_last" --select-1)if test -z "$sel"echo "no wm selected"return