This commit is contained in:
2026-05-21 20:37:54 +09:00
parent 8efe0b9341
commit df41182acd
20 changed files with 152 additions and 57 deletions
+16 -2
View File
@@ -1,7 +1,7 @@
{ config, pkgs, lib, ... }:
let
inherit (builtins) listToAttrs;
inherit (lib.lists) imap1 forEach reverseList elemAt;
inherit (lib.lists) imap1 forEach reverseList;
modules = [
{
name = "time";
@@ -9,6 +9,20 @@ let
format = "%Y %m/%d %a | %H:%M:%S";
};
}
{
name = "battery 1";
settings = {
format = "%status %remaining (%emptytime)";
format_percentage = "%.01f%s";
format_down = "No BAT";
status_chr = "CHR";
status_bat = "";
status_unk = "UNK";
status_full = "FULL";
low_threshold = 30;
threshold_type = "percentage";
};
}
{
name = "load";
settings = {
@@ -57,7 +71,7 @@ let
v // { position = i; }
) (reverseList modules);
modNameValList = forEach numberedModulesList (x: {
name = x.name;
inherit (x) name;
value = {
inherit (x) settings position;
};