add battery percentage

This commit is contained in:
Felix Van der Jeugt 2016-03-27 17:40:35 +02:00
parent e18dcf225b
commit 3647767f88

View File

@ -1,7 +1,7 @@
bar-list = ["topbar"]; bar-list = ["topbar"];
topbar:{ topbar:{
font: "Droid Sans, FontAwesome Bold 9"; font: "Droid Sans, FontAwesome Bold 9";
block-list: ["date"]; block-list: ["date", "battery"];
position: "top"; position: "top";
gap-horizontal: 0; gap-horizontal: 0;
gap-vertical: 0; gap-vertical: 0;
@ -19,4 +19,13 @@ topbar:{
foreground-color-rgb:0xFFFFFF; foreground-color-rgb:0xFFFFFF;
underline-color-rgb:0x0; underline-color-rgb:0x0;
} }
battery:{
exec: "acpi -b | tr -d ' ' | cut -d',' -f2";
align: "right";
fixed-size: 50;
type: "periodic";
interval: 3;
foreground-color-rgb:0xFFFFFF;
underline-color-rgb:0x0;
}
} }