tmux: optional sessionizer binding

main
Zynh Ludwig 2024-08-03 02:55:41 -07:00
parent 8662c4df19
commit 1e55be7fae
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
let
cfg = config.snowhawk.tmux;
sessionizer = cfg.sessionizer;
in
{
options.snowhawk.tmux = {
@ -37,7 +38,7 @@ in
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind-key -r f run-shell "tmux neww ~/.user/scripts/tmux-sessionizer"
${lib.optionalString sessionizer.enable ''bind-key -r f run-shell "tmux neww ${sessionizer.pkg}/bin/tmux-sessionizer"''}
'';
};
};