add tmux back

This commit is contained in:
Anthony Rodriguez 2024-08-26 23:59:36 +02:00
parent a844c71ef3
commit 5c9a98be85
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
3 changed files with 47 additions and 1 deletions

View file

@ -6,6 +6,7 @@
./starship.nix ./starship.nix
./zoxide.nix ./zoxide.nix
./direnv.nix ./direnv.nix
./tmux.nix
./zellij.nix ./zellij.nix
]; ];
} }

46
home/base/shell/tmux.nix Normal file
View file

@ -0,0 +1,46 @@
{ pkgs, ... }:
{
programs.tmux = {
enable = true;
prefix = "C-space";
escapeTime = 10;
clock24 = true;
keyMode = "vi";
mouse = true;
baseIndex = 1;
extraConfig = ''
set-option -a terminal-features "''${TERM}:RGB"
'';
plugins = with pkgs; [
{
plugin = tmuxPlugins.catppuccin;
extraConfig = ''
set -g @catppuccin_window_left_separator ""
set -g @catppuccin_window_right_separator " "
set -g @catppuccin_window_middle_separator " "
set -g @catppuccin_window_number_position "right"
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 "directory user host session"
set -g @catppuccin_status_left_separator " "
set -g @catppuccin_status_right_separator ""
set -g @catppuccin_status_fill "icon"
set -g @catppuccin_status_connect_separator "no"
set -g @catppuccin_directory_text "#{pane_current_path}"
set -g @catppuccin_flavor 'frappe'
'';
}
tmuxPlugins.vim-tmux-navigator
tmuxPlugins.yank
];
};
programs.fzf.tmux.enableShellIntegration = true;
}

View file

@ -3,6 +3,5 @@
{ {
programs.zellij = { programs.zellij = {
enable = true; enable = true;
enableFishIntegration = true;
}; };
} }