nix-config/modules/hosts/t480/dwm/dwmblocks/default.nix

26 lines
570 B
Nix
Raw Normal View History

2025-08-19 20:56:05 +01:00
{
flake.modules.homeManager.gui =
{ pkgs, ... }:
{
home.packages = [
(pkgs.dwmblocks.override {
conf = ''
static const Block blocks[] = {
{"", "status-audio", 10, 0},
{"", "status-battery", 60, 0},
2025-08-19 20:56:05 +01:00
{"", "free -h | awk '/^Mem/ { printf \"%s/%s RAM\\n\", $3, $2 }' | sed 's/i//g'", 30, 0},
2025-08-19 20:56:05 +01:00
{"", "date '+%x %R'", 30, 0},
};
static char delim[] = " | ";
static unsigned int delimLen = 5;
'';
})
];
};
}