t14: add battery indicator to waybar
This commit is contained in:
parent
1027e9dd80
commit
ba55adc044
1 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.local.gui;
|
cfg = config.local.gui;
|
||||||
|
laptop = config.trivium.laptop.enable;
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
|
@ -33,7 +34,13 @@ in {
|
||||||
"temperature"
|
"temperature"
|
||||||
"keyboard-state"
|
"keyboard-state"
|
||||||
"tray"
|
"tray"
|
||||||
|
] ++ lists.optionals laptop [
|
||||||
|
"battery"
|
||||||
];
|
];
|
||||||
|
"battery" = mkIf laptop {
|
||||||
|
format = "{capacity}% {icon}";
|
||||||
|
format-icons = ["" "" "" "" ""];
|
||||||
|
};
|
||||||
"keyboard-state" = {
|
"keyboard-state" = {
|
||||||
numlock = true;
|
numlock = true;
|
||||||
capslock = true;
|
capslock = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue