t14: fix battery indicator config
This commit is contained in:
parent
bf7cd5544c
commit
b0440fa4c1
3 changed files with 24 additions and 15 deletions
|
@ -6,7 +6,7 @@
|
|||
}:
|
||||
with lib; let
|
||||
cfg = config.local.gui;
|
||||
laptop = config.trivium.laptop.enable;
|
||||
laptop = config.local.defaultDesktopPack.laptop;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
programs.waybar = {
|
||||
|
@ -26,20 +26,22 @@ in {
|
|||
"clock"
|
||||
];
|
||||
|
||||
modules-right = [
|
||||
"privacy"
|
||||
"cpu"
|
||||
"memory"
|
||||
"disk"
|
||||
"temperature"
|
||||
"keyboard-state"
|
||||
"tray"
|
||||
] ++ lists.optionals laptop [
|
||||
"battery"
|
||||
];
|
||||
modules-right =
|
||||
[
|
||||
"privacy"
|
||||
"cpu"
|
||||
"memory"
|
||||
"disk"
|
||||
"temperature"
|
||||
"keyboard-state"
|
||||
"tray"
|
||||
]
|
||||
++ lists.optionals laptop [
|
||||
"battery"
|
||||
];
|
||||
"battery" = mkIf laptop {
|
||||
format = "{capacity}% {icon}";
|
||||
format-icons = ["" "" "" "" ""];
|
||||
format = "{capacity}% {icon}";
|
||||
format-icons = ["" "" "" "" ""];
|
||||
};
|
||||
"keyboard-state" = {
|
||||
numlock = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue