36 lines
1 KiB
Nix
36 lines
1 KiB
Nix
{ config, pkgs, ... }: {
|
|
programs.tmux = {
|
|
enable = true;
|
|
keyMode = "vi";
|
|
mouse = true;
|
|
terminal = "xterm-256color";
|
|
plugins = with pkgs.tmuxPlugins; [
|
|
{
|
|
plugin = power-theme;
|
|
extraConfig = ''
|
|
set -g @tmux_power_theme '#${config.lib.stylix.colors.base01}'
|
|
set -g @tmux_power_right_arrow_icon ' '
|
|
set -g @tmux_power_left_arrow_icon ' '
|
|
set -g @tmux_power_prefix_highlight_pos 'R'
|
|
set -g @tmux_power_show_upload_speed false
|
|
set -g @tmux_power_show_download_speed false
|
|
set -g @tmux_power_show_web_reachable false
|
|
'';
|
|
}
|
|
{
|
|
plugin = better-mouse-mode;
|
|
extraConfig = ''
|
|
set -g @scroll-in-moused-over-pane "on"
|
|
set -g @scroll-speed-num-lines-per-scroll "3"
|
|
'';
|
|
}
|
|
prefix-highlight
|
|
];
|
|
extraConfig = ''
|
|
bind | split-window -h
|
|
bind - split-window -v
|
|
bind n swap-window -t +1
|
|
bind N swap-window -t -1
|
|
'';
|
|
};
|
|
}
|