group module: configurable orientation

currently, the orientation of group modules is always the opposite of
the bar. Change it so that:

* the default orientation of the group module is always the opposite of
  its parent, even for nested groups
* the orientation can be overridden in the config
* css ID and class are set for the group element
This commit is contained in:
Bao Trinh
2022-06-13 14:17:17 -05:00
parent 4deb6d812d
commit f5a24d12e5
4 changed files with 37 additions and 7 deletions

View File

@ -12,7 +12,7 @@ namespace waybar {
class Group : public AModule {
public:
Group(const std::string&, const Bar&, const Json::Value&);
Group(const std::string&, const std::string&, const Json::Value&, bool);
~Group() = default;
auto update() -> void;
operator Gtk::Widget&();