mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-19 17:25:38 +02:00
Fixes for size setting and config
+ height is optional + width is optional + make location enum into bitmask
This commit is contained in:
parent
033f21a1f2
commit
37b5b02fc4
6 changed files with 51 additions and 74 deletions
|
@ -136,9 +136,10 @@ content(struct module *mod)
|
|||
m->state == STATE_DISCHARGING ? "discharging" :
|
||||
"unknown"),
|
||||
tag_new_int_range(mod, "capacity", m->capacity, 0, 100),
|
||||
tag_new_int_range(mod, "charge", 50, 0, 100),
|
||||
tag_new_string(mod, "estimate", estimate),
|
||||
},
|
||||
.count = 6,
|
||||
.count = 7,
|
||||
};
|
||||
|
||||
mtx_unlock(&mod->lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue