add tmux
This commit is contained in:
parent
1ca932b66f
commit
d6522ccca2
2 changed files with 28 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
../programs/zsh.nix
|
||||
../programs/vim.nix
|
||||
../programs/mail.nix
|
||||
../programs/tmux.nix
|
||||
];
|
||||
programs = {
|
||||
zsh = {
|
||||
|
|
27
config/programs/tmux.nix
Normal file
27
config/programs/tmux.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ pkgs, ... }: {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
baseIndex = 1;
|
||||
clock24 = true;
|
||||
prefix = "C-a";
|
||||
sensibleOnTop = true;
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
power-theme
|
||||
];
|
||||
|
||||
extraConfig = ''
|
||||
set-window-option -g automatic-rename on
|
||||
set-option -g set-titles on
|
||||
|
||||
bind -n M-Left select-pane -L
|
||||
bind -n M-Right select-pane -R
|
||||
bind -n M-Up select-pane -U
|
||||
bind -n M-Down select-pane -D
|
||||
|
||||
bind -n S-Left previous-window
|
||||
bind -n S-Right next-window
|
||||
|
||||
set -sg escape-time 0
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue