1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-29 19:41:27 +00:00
Dotfiles/nix/modules/tmux.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

2021-06-11 10:39:49 +00:00
{config, pkgs, ...}:
programs.tmux = {
enable = true;
clock24 = true;
extraPackages = tmuxPlugins : [tmux-gruvbox.gruvbox ];
extraTmuxConf = ''
set -g @plugin 'egel/tmux-gruvbox'
set -g @tmux-gruvbox 'dark' # or 'light'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g mouse on
set -g history-limit 500000
setw -g monitor-activity on
set -g visual-activity on
set -g status-justify centre
#run '~/.config/tmux/plugins/tpm/tpm'
# Activity monitoring
set-option -g prefix C-space
setw -g monitor-activity on
set -g visual-activity on
# Vi copypaste mode
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
# enable by r + v
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
# word seperators for automatic word selection
setw -g word-separators ' '
# hjkl pane traversal
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# HJKL resize pane
bind -r K resize-pane -U
bind -r J resize-pane -D
bind -r H resize-pane -L
bind -r L resize-pane -R
'';
}