flake/home/applications/tmux/default.nix

31 lines
1.3 KiB
Nix
Raw Normal View History

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