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