feat: allow waybar to be positioned on left/right

This commit is contained in:
Alex
2019-03-22 12:25:05 +01:00
parent f700319d7f
commit 47142a61ae
7 changed files with 48 additions and 19 deletions

View File

@ -32,6 +32,7 @@ class Bar {
std::string output_name;
uint32_t wl_name;
bool visible = true;
bool vertical = false;
private:
static void handleLogicalPosition(void *, struct zxdg_output_v1 *, int32_t,
int32_t);

View File

@ -11,7 +11,7 @@ namespace waybar::modules::SNI {
class Tray : public IModule {
public:
Tray(const std::string&, const Json::Value&);
Tray(const std::string&, const Bar&, const Json::Value&);
~Tray() = default;
auto update() -> void;
operator Gtk::Widget &();