Fixes for size setting and config

+ height is optional
+ width is optional
+ make location enum into bitmask
This commit is contained in:
Kyle Gunger 2023-01-17 21:23:47 -05:00
parent 033f21a1f2
commit 37b5b02fc4
6 changed files with 51 additions and 74 deletions

View file

@ -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);