2024-08-25 15:02:35 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
home.packages = [ pkgs.tmux ];
|
2024-07-03 13:01:39 +00:00
|
|
|
|
2024-11-15 14:55:51 +00:00
|
|
|
xdg.configFile."tmux/tmux.conf".text =
|
|
|
|
''
|
|
|
|
run-shell ${pkgs.tmuxPlugins.sensible.rtp}
|
|
|
|
run-shell ${pkgs.tmuxPlugins.prefix-highlight.rtp}
|
2024-07-03 13:01:39 +00:00
|
|
|
|
2024-11-15 14:55:51 +00:00
|
|
|
set-option -s default-terminal "tmux-256color"
|
2024-07-21 03:55:03 +00:00
|
|
|
|
2024-11-15 14:55:51 +00:00
|
|
|
set-option -g base-index 1
|
|
|
|
set-option -w -g pane-base-index 1
|
|
|
|
set-option -g renumber-windows on
|
2024-07-21 03:55:03 +00:00
|
|
|
|
2024-11-15 14:55:51 +00: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 03:55:03 +00:00
|
|
|
|
2024-11-15 14:55:51 +00:00
|
|
|
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
|
|
|
|
''
|
|
|
|
+ builtins.readFile ./tokyonight_night.tmux;
|
2024-07-03 13:01:39 +00:00
|
|
|
}
|