18 lines
418 B
Nix
18 lines
418 B
Nix
# memory
|
|
{ lib, ... }:
|
|
|
|
let
|
|
inherit (lib) mkDefault;
|
|
in
|
|
{
|
|
interval = mkDefault 10;
|
|
format = mkDefault " {percentage}";
|
|
tooltip-format = mkDefault ''
|
|
Total Memory: {total} GiB
|
|
Used Memory: {used} GiB ({percentage}%)
|
|
Available Memory: {avail} GiB
|
|
Total Swap: {swapTotal} GiB
|
|
Used Swap: {swapUsed} GiB ({swapPercentage}%)
|
|
Available Swap: {swapAvail} GiB
|
|
'';
|
|
}
|