2024-03-18 07:04:52 +01:00
|
|
|
{ config, pkgs, ... }: {
|
2024-03-14 06:50:32 +01:00
|
|
|
programs.tmux = {
|
|
|
|
enable = true;
|
|
|
|
keyMode = "vi";
|
2024-03-18 07:04:52 +01:00
|
|
|
mouse = true;
|
2024-03-14 06:50:32 +01:00
|
|
|
terminal = "xterm-256color";
|
2024-03-15 02:14:18 +01:00
|
|
|
plugins = with pkgs.tmuxPlugins; [
|
2024-03-15 05:00:58 +01:00
|
|
|
{
|
2024-03-18 07:04:52 +01:00
|
|
|
plugin = power-theme;
|
2024-03-15 05:00:58 +01:00
|
|
|
extraConfig = ''
|
2024-03-18 07:04:52 +01:00
|
|
|
set -g @tmux_power_theme '#${config.lib.stylix.colors.base09}'
|
|
|
|
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
|
2024-03-15 05:00:58 +01:00
|
|
|
'';
|
|
|
|
}
|
2024-03-18 07:04:52 +01:00
|
|
|
{
|
|
|
|
plugin = better-mouse-mode;
|
2024-03-15 05:00:58 +01:00
|
|
|
extraConfig = ''
|
2024-03-18 07:04:52 +01:00
|
|
|
set -g @scroll-in-moused-over-pane "on"
|
|
|
|
set -g @scroll-speed-num-lines-per-scroll "3"
|
2024-03-15 05:00:58 +01:00
|
|
|
'';
|
|
|
|
}
|
2024-03-18 07:04:52 +01:00
|
|
|
prefix-highlight
|
2024-03-15 02:14:18 +01:00
|
|
|
];
|
2024-03-18 07:04:52 +01:00
|
|
|
extraConfig = ''
|
|
|
|
unbind C-b
|
|
|
|
set-option -g prefix C-a
|
|
|
|
bind-key C-a send-prefix
|
|
|
|
|
|
|
|
bind | split-window -h
|
|
|
|
bind - split-window -v
|
|
|
|
'';
|
2024-03-14 06:50:32 +01:00
|
|
|
};
|
|
|
|
}
|