33 lines
646 B
Nix
33 lines
646 B
Nix
{pkgs, ...}: {
|
|
home.packages = with pkgs; [
|
|
# replace top and htop with bottom
|
|
# if breaks shit? cope.
|
|
(writeScriptBin "htop" ''exec btm'')
|
|
(writeScriptBin "top" ''exec btm'')
|
|
];
|
|
programs.bottom = {
|
|
enable = true;
|
|
settings = {
|
|
flags.group_processes = true;
|
|
row = [
|
|
{
|
|
ratio = 2;
|
|
child = [
|
|
{type = "cpu";}
|
|
{type = "mem";}
|
|
];
|
|
}
|
|
{
|
|
ratio = 3;
|
|
child = [
|
|
{
|
|
type = "proc";
|
|
ratio = 1;
|
|
default = true;
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|