28 lines
808 B
Nix
28 lines
808 B
Nix
|
{ pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
programs.tmux = {
|
||
|
enable = true;
|
||
|
baseIndex = 1;
|
||
|
clock24 = true;
|
||
|
keyMode = "vi";
|
||
|
mouse = true;
|
||
|
secureSocket = true;
|
||
|
sensibleOnTop = true;
|
||
|
shortcut = "Space";
|
||
|
terminal = "xterm-256color";
|
||
|
plugins = with pkgs.tmuxPlugins; [ yank tmux-fzf catppuccin ];
|
||
|
extraConfig = ''
|
||
|
# https://old.reddit.com/r/tmux/comments/mesrci/tmux_2_doesnt_seem_to_use_256_colors/
|
||
|
set -ga terminal-overrides ",*256col*,alacritty:Tc"
|
||
|
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
||
|
set-environment -g COLORTERM "truecolor"
|
||
|
|
||
|
# easy-to-remember split pane commands
|
||
|
bind | split-window -h -c "#{pane_current_path}"
|
||
|
bind - split-window -v -c "#{pane_current_path}"
|
||
|
bind c new-window -c "#{pane_current_path}"
|
||
|
'';
|
||
|
};
|
||
|
}
|