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
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:
parent
3edb267414
commit
90b3ee1eda
1 changed files with 10 additions and 0 deletions
|
|
@ -111,6 +111,16 @@ in
|
|||
} {
|
||||
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"
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue