add config for slstatus

This commit is contained in:
2026-04-01 21:19:16 +02:00
parent 21e337580f
commit 9853db64db
2 changed files with 15 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
const unsigned int interval = 1000;
static const char unknown_str[] = "n/a";
#define MAXLEN 2048
static const struct arg args[] = {
{ run_command, "VOL: %s | ", "wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/Volume: //'" },
{ disk_free, "FDS: %s | ", "/" },
{ cpu_perc, "CPU: %s%% | ", NULL },
{ battery_state, "BAT: %s ", "BAT0" },
{ battery_perc, "%s%% | ", "BAT0" },
{ datetime, "%s", "%F %T" },
};
+4
View File
@@ -38,4 +38,8 @@
buildInputs = oldAttrs.buildInputs ++ [ prev.pkgs.glib ];
});
})
(final: prev: {
slstatus = prev.slstatus.override { conf = ./config_files/slstatus/config.h; };
})
]