nix/home-manager/common/software/cli/tmux.nix
2024-03-15 13:00:58 +09:00

32 lines
779 B
Nix

{ pkgs, ... }: {
programs.tmux = {
enable = true;
clock24 = true;
keyMode = "vi";
terminal = "xterm-256color";
plugins = with pkgs.tmuxPlugins; [
better-mouse-mode
sensible
sidebar
{
plugin = sysstat;
extraConfig = ''
set -g status-right "#{sysstat_cpu} | #{sysstat_mem} | #{sysstat_swap} | #{sysstat_loadavg} | #[fg=cyan]#(echo $USER)#[default]@#H"
'';
}
{
plugin = battery;
extraConfig = ''
set-option -g status-right "#{battery}"
'';
}
# {
# plugin = weather;
# extraConfig = ''
# set-option -g @tmux-weather-location "Kyoto"
# set-option -g status-right "#{weather}"
# '';
# }
];
};
}