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

33 lines
779 B
Nix
Raw Normal View History

2024-03-15 02:14:18 +01:00
{ pkgs, ... }: {
2024-03-14 06:50:32 +01:00
programs.tmux = {
enable = true;
clock24 = true;
keyMode = "vi";
terminal = "xterm-256color";
2024-03-15 02:14:18 +01:00
plugins = with pkgs.tmuxPlugins; [
2024-03-15 02:38:02 +01:00
better-mouse-mode
2024-03-15 02:14:18 +01:00
sensible
sidebar
2024-03-15 05:00:58 +01:00
{
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}"
# '';
# }
2024-03-15 02:14:18 +01:00
];
2024-03-14 06:50:32 +01:00
};
}