[core/output] Add parameter "align"

Also, add some documentation
This commit is contained in:
tobi-wan-kenobi 2020-05-03 11:41:01 +02:00
parent 6fc8042899
commit 5fd9501ed2
2 changed files with 16 additions and 1 deletions

View file

@ -108,6 +108,7 @@ class block(object):
"_suffix",
"_prefix",
"min_width",
"align"
]:
assign(self.__attributes, result, k)
@ -185,6 +186,7 @@ class i3(object):
blk.set("min-width", "-" * int(minwidth))
except:
blk.set("min-width", minwidth)
blk.set("align", widget.theme("align"))
blk.set("full_text", self.__content[widget])
if widget.get("pango", False):
blk.set("markup", "pango")