This works fine:
local blocks = {
oxwm.bar.block.datetime({
format = "{}",
date_format = "%a, %b %d - %-I:%M %P",
interval = 1,
color = colors.cyan,
underline = true,
}),
oxwm.bar.block.static({
text = " │ ",
interval = 999999999,
color = colors.lavender,
underline = false,
}),
-- Uncomment to add battery status (useful for laptops)
oxwm.bar.block.battery({
format = "{}%",
charging = "⚡ {}%",
discharging = "- {}%",
full = "✓ {}%",
interval = 30,
color = colors.green,
underline = false,
}),
};
While this shows an empty bar:
local blocks = {
oxwm.bar.block.static({
text = " │ ",
interval = 999999999,
color = colors.lavender,
underline = false,
}),
-- Uncomment to add battery status (useful for laptops)
oxwm.bar.block.battery({
format = "{}%",
charging = "⚡ {}%",
discharging = "- {}%",
full = "✓ {}%",
interval = 30,
color = colors.green,
underline = false,
}),
};
It seems like having any non-static block before makes the battery block work.
This works fine:
While this shows an empty bar:
It seems like having any non-static block before makes the battery block work.