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

33 lines
772 B
Nix
Raw Normal View History

2024-03-15 10:14:18 +09:00
{ pkgs, ... }: {
2024-03-14 14:50:32 +09:00
programs.tmux = {
enable = true;
clock24 = true;
keyMode = "vi";
terminal = "xterm-256color";
2024-03-15 10:14:18 +09:00
plugins = with pkgs.tmuxPlugins; [
2024-03-15 10:38:02 +09:00
better-mouse-mode
2024-03-15 10:14:18 +09:00
sensible
sidebar
2024-03-15 13:00:58 +09: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}"
'';
}
2024-03-18 11:47:26 +09:00
{
plugin = weather;
extraConfig = ''
set-option -g @tmux-weather-location "Kyoto"
set-option -g status-right "#{weather}"
'';
}
2024-03-15 10:14:18 +09:00
];
2024-03-14 14:50:32 +09:00
};
}