Start configuring dwmblocks
This commit is contained in:
parent
d7a9b529e3
commit
bafbce7ac1
5 changed files with 68 additions and 6 deletions
24
modules/hosts/t480/dwm/dwmblocks/default.nix
Normal file
24
modules/hosts/t480/dwm/dwmblocks/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
flake.modules.homeManager.gui =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
(pkgs.dwmblocks.override {
|
||||
conf = ''
|
||||
static const Block blocks[] = {
|
||||
{"", "status-audio", 10, 0},
|
||||
|
||||
{"", "status-battery", 60, 0},
|
||||
|
||||
{"Mem: ", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0},
|
||||
|
||||
{"", "date '+%x %R'", 30, 0},
|
||||
};
|
||||
|
||||
static char delim[] = " | ";
|
||||
static unsigned int delimLen = 5;
|
||||
'';
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue