home: tmux: display CPU in status bar
This commit is contained in:
parent
63db8cce42
commit
a00a9fab73
|
@ -7,20 +7,27 @@ in
|
||||||
enable = mkEnableOption "tmux dotfiles";
|
enable = mkEnableOption "tmux dotfiles";
|
||||||
};
|
};
|
||||||
|
|
||||||
config.programs.tmux = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
enable = true;
|
programs.tmux = {
|
||||||
baseIndex = 1;
|
enable = true;
|
||||||
terminal = "screen-256color";
|
baseIndex = 1;
|
||||||
clock24 = true;
|
terminal = "screen-256color";
|
||||||
|
clock24 = true;
|
||||||
|
|
||||||
plugins = with pkgs; [
|
plugins = with pkgs; [
|
||||||
tmuxPlugins.cpu
|
{
|
||||||
{
|
plugin = tmuxPlugins.cpu;
|
||||||
plugin = tmuxPlugins.tmux-colors-solarized;
|
extraConfig = ''
|
||||||
extraConfig = ''
|
set -g status-right 'CPU: #{cpu_percentage} | %a %d-%h %H:%M '
|
||||||
set -g @colors-solarized 'light'
|
'';
|
||||||
'';
|
}
|
||||||
}
|
{
|
||||||
];
|
plugin = tmuxPlugins.tmux-colors-solarized;
|
||||||
|
extraConfig = ''
|
||||||
|
set -g @colors-solarized 'light'
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue