synix/modules/home/waybar/modules/memory.nix
sid 95a533c876
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 3s
initial commit
2026-02-23 20:34:35 +01:00

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
'';
}