feat: move tmux extraConfig to NixOS options 🎨

This commit is contained in:
DannyDannyDanny 2025-07-04 12:04:22 +00:00
parent 0966e495b7
commit a641864365

View file

@ -4,7 +4,11 @@
programs.tmux = {
enable = true;
clock24 = true;
# escapeTime = 20;
escapeTime = 20;
keyMode = "vi";
historyLimit = 100000;
baseIndex = 1;
extraConfig = ''
# remap prefix from ^+B to alt-f
unbind C-b
@ -19,16 +23,6 @@
# enable mouse support for switching panes/windows
set -g mouse on
# extend history
set -g history-limit 100000
# set vi keybindings
setw -g mode-keys vi
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xsel -i --clipboard"
# reduce escape time
set -sg escape-time 20
# pane movement shortcuts
bind h select-pane -L
bind j select-pane -D
@ -54,7 +48,6 @@
# setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
'';
plugins = [
#pkgs.tmuxPlugins.
pkgs.tmuxPlugins.catppuccin
];
};