update
This commit is contained in:
+16
-2
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user