tmux: optional sessionizer binding

This commit is contained in:
Zynh Ludwig 2024-08-03 02:55:41 -07:00
parent 8662c4df19
commit 1e55be7fae

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"''}
'';
};
};