{ config , lib , ... }: with lib; let cfg = config.dadada.home.tmux; in { options.dadada.home.tmux = { enable = mkEnableOption "Enable tmux config"; }; config = mkIf cfg.enable { programs.tmux = { enable = true; extraConfig = '' setw -g mode-keys vi set -g mouse on set -g set-clipboard external set -g set-titles on set -g status on set-option -g status-interval 5 set-option -g automatic-rename on set-option -g automatic-rename-format '#{b:pane_current_path}' set -g status-bg "#000000" set -g status-fg "#ffffff" bind '"' split-window -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}" ''; }; }; }