2024-08-25 23:02:35 +08:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
home.packages = [ pkgs.tmux ];
|
2024-07-03 21:01:39 +08:00
|
|
|
|
2024-12-15 14:59:55 +08:00
|
|
|
xdg.configFile."tmux/tmux.conf".text = ''
|
|
|
|
run-shell ${pkgs.tmuxPlugins.sensible.rtp}
|
2024-07-03 21:01:39 +08:00
|
|
|
|
2024-12-15 14:59:55 +08:00
|
|
|
set-option -s default-terminal "tmux-256color"
|
2024-07-21 11:55:03 +08:00
|
|
|
|
2024-12-15 14:59:55 +08:00
|
|
|
set-option -g base-index 1
|
|
|
|
set-option -w -g pane-base-index 1
|
|
|
|
set-option -g renumber-windows on
|
2024-07-21 11:55:03 +08:00
|
|
|
|
2024-12-15 14:59:55 +08:00
|
|
|
set-option -g status-keys vi
|
|
|
|
set-option -w -g mode-keys vi
|
|
|
|
set-option -g mouse on
|
|
|
|
set-option -s set-clipboard on
|
|
|
|
set-option -w -g aggressive-resize on
|
2024-07-21 11:55:03 +08:00
|
|
|
|
2024-12-15 14:59:55 +08:00
|
|
|
set-option -g status-style "bg=black"
|
|
|
|
set-option -g status-left ""
|
|
|
|
set-option -g status-right " #S "
|
|
|
|
set-option -g status-right-style "fg=black bg=blue"
|
|
|
|
set-option -w -g window-status-separator ""
|
|
|
|
set-option -w -g window-status-format " #I #W #F "
|
|
|
|
set-option -w -g window-status-current-format " #I #W #F "
|
|
|
|
set-option -w -g window-status-current-style "fg=black bg=blue"
|
|
|
|
set-option -w -g window-status-bell-style "fg=black bg=yellow bold"
|
|
|
|
|
|
|
|
bind-key -N "Select pane to the left of the active pane" h select-pane -L
|
|
|
|
bind-key -N "Select pane below the active pane" j select-pane -D
|
|
|
|
bind-key -N "Select pane above the active pane" k select-pane -U
|
|
|
|
bind-key -N "Select pane to the right of the active pane" l select-pane -R
|
|
|
|
bind-key -r -N "Resize the pane left by 5" H resize-pane -L 5
|
|
|
|
bind-key -r -N "Resize the pane down by 5" J resize-pane -D 5
|
|
|
|
bind-key -r -N "Resize the pane up by 5" K resize-pane -U 5
|
|
|
|
bind-key -r -N "Resize the pane right by 5" L resize-pane -R 5
|
|
|
|
'';
|
2024-07-03 21:01:39 +08:00
|
|
|
}
|