nix/home-manager/common/software/cli/tmux.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2024-03-18 15:04:52 +09:00
{ config, pkgs, ... }: {
2024-03-14 14:50:32 +09:00
programs.tmux = {
enable = true;
keyMode = "vi";
2024-03-18 15:04:52 +09:00
mouse = true;
2024-04-02 21:09:00 +09:00
# terminal = "xterm-256color";
2024-03-15 10:14:18 +09:00
plugins = with pkgs.tmuxPlugins; [
2024-03-15 13:00:58 +09:00
{
2024-03-18 15:04:52 +09:00
plugin = power-theme;
2024-03-15 13:00:58 +09:00
extraConfig = ''
2024-04-02 18:23:07 +09:00
set -g @tmux_power_theme '#${config.lib.stylix.colors.base05}'
2024-03-18 15:04:52 +09:00
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-04-02 21:09:00 +09:00
set -g default-terminal "screen-256color"
set-option -sa terminal-overrides ",xterm-256color:RGB"
2024-03-15 13:00:58 +09:00
'';
}
2024-03-18 15:04:52 +09:00
{
plugin = better-mouse-mode;
2024-03-15 13:00:58 +09:00
extraConfig = ''
2024-03-18 15:04:52 +09:00
set -g @scroll-in-moused-over-pane "on"
set -g @scroll-speed-num-lines-per-scroll "3"
2024-03-15 13:00:58 +09:00
'';
}
2024-03-18 15:04:52 +09:00
prefix-highlight
2024-03-15 10:14:18 +09:00
];
2024-03-18 15:04:52 +09:00
extraConfig = ''
bind | split-window -h
2024-03-20 12:00:50 +09:00
bind - split-window -v
2024-04-02 18:23:07 +09:00
bind n next-window
bind N previous-window
2024-03-18 15:04:52 +09:00
'';
2024-03-14 14:50:32 +09:00
};
}