feat: move tmux extraConfig to NixOS options 🎨
This commit is contained in:
parent
0966e495b7
commit
a641864365
1 changed files with 5 additions and 12 deletions
|
|
@ -4,7 +4,11 @@
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
clock24 = true;
|
clock24 = true;
|
||||||
# escapeTime = 20;
|
escapeTime = 20;
|
||||||
|
keyMode = "vi";
|
||||||
|
historyLimit = 100000;
|
||||||
|
baseIndex = 1;
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# remap prefix from ^+B to alt-f
|
# remap prefix from ^+B to alt-f
|
||||||
unbind C-b
|
unbind C-b
|
||||||
|
|
@ -19,16 +23,6 @@
|
||||||
# enable mouse support for switching panes/windows
|
# enable mouse support for switching panes/windows
|
||||||
set -g mouse on
|
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
|
# pane movement shortcuts
|
||||||
bind h select-pane -L
|
bind h select-pane -L
|
||||||
bind j select-pane -D
|
bind j select-pane -D
|
||||||
|
|
@ -54,7 +48,6 @@
|
||||||
# setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
|
# setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
|
||||||
'';
|
'';
|
||||||
plugins = [
|
plugins = [
|
||||||
#pkgs.tmuxPlugins.
|
|
||||||
pkgs.tmuxPlugins.catppuccin
|
pkgs.tmuxPlugins.catppuccin
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue