From 7b445b1407200782d965976f413486b319df7ecc Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 16 Sep 2024 21:23:59 -0400 Subject: [PATCH] nice tmux configuration --- home/modules/term/default.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/home/modules/term/default.nix b/home/modules/term/default.nix index b71507a..cfe62c2 100644 --- a/home/modules/term/default.nix +++ b/home/modules/term/default.nix @@ -77,6 +77,37 @@ in { plugins = with pkgs.tmuxPlugins; [ vim-tmux-navigator yank + resurrect + { + plugin = continuum; + extraConfig = '' + set -g @continuum-restore 'on' + ''; + } + { + plugin = catppuccin; + extraConfig = '' + set -g status-position top + set -g @catppuccin_flavor 'macchiato' + + set -g @catppuccin_window_left_separator "█" + set -g @catppuccin_window_right_separator "█ " + set -g @catppuccin_window_number_position "right" + set -g @catppuccin_window_middle_separator " █" + + set -g @catppuccin_window_default_fill "number" + set -g @catppuccin_window_default_text "#W" + + set -g @catppuccin_window_current_fill "number" + set -g @catppuccin_window_current_text "#W" + + set -g @catppuccin_status_modules_right "user host session" + set -g @catppuccin_status_left_separator "" + set -g @catppuccin_status_right_separator " " + set -g @catppuccin_status_fill "all" + set -g @catppuccin_status_connect_separator "yes" + ''; + } # { # plugin = tokyo-night-tmux; # extraConfig = '' @@ -99,6 +130,7 @@ in { set-option -sa terminal-overrides ",xterm*:Tc" set-window-option -g pane-base-index 1 set-option -g renumber-windows on + set -sg escape-time 0 # Use Alt-arrow keys without prefix key to switch panes bind -n M-Left select-pane -L