Add yazi popup
All checks were successful
Buill NixOS Configurations / build (carbon) (push) Successful in 4m5s
Buill NixOS Configurations / build (git) (push) Successful in 1m24s
Buill NixOS Configurations / build (gospel) (push) Successful in 1m27s
Buill NixOS Configurations / build (node) (push) Successful in 3m17s

This commit is contained in:
alejandro-angulo 2026-02-28 21:26:50 -08:00
parent 3edb267414
commit 90b3ee1eda

View file

@ -111,6 +111,16 @@ in
} { } {
display-popup -h 90% -w 90% -E "tmux new-session -A -s btop ${pkgs.btop}/bin/btop" display-popup -h 90% -w 90% -E "tmux new-session -A -s btop ${pkgs.btop}/bin/btop"
} }
''
+ lib.strings.optionalString config.programs.yazi.enable ''
# Open yazi in a popup
# Spins up a new session with a '-yazi' suffix (hitting the shortcut
# toggles between attaching and detaching)
bind C-g if-shell "[[ $(tmux display-message -p '#S') == *-yazi ]]" {
detach-client
} {
display-popup -h 90% -w 90% -E "tmux new-session -A -s $(tmux display-message -p '#S')-yazi ${pkgs.yazi}/bin/yazi"
}
''; '';
}; };