{ pkgs, config, lib, ... }: let cfg = config.xyno.cli.tmux; in { options.xyno.cli.tmux.enable = lib.mkEnableOption "enable tmux with xynos config"; config = lib.mkIf cfg.enable { programs.tmux = { enable = true; keyMode = "vi"; clock24 = true; historyLimit = 10000; plugins = with pkgs.tmuxPlugins; [ vim-tmux-navigator gruvbox ]; escapeTime = 0; terminal = "tmux-256color"; # newSession = true; extraConfig = '' new-session -s main bind-key -n C-e send-prefix bind '"' split-window -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}" # set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m' ''; }; }; }