-
-
Notifications
You must be signed in to change notification settings - Fork 732
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into swaybar-ipc
- Loading branch information
Showing
7 changed files
with
95 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#pragma once | ||
|
||
#include <gtkmm/widget.h> | ||
#include <gtkmm/box.h> | ||
#include <json/json.h> | ||
#include "AModule.hpp" | ||
#include "bar.hpp" | ||
#include "factory.hpp" | ||
|
||
namespace waybar { | ||
|
||
class Group : public AModule { | ||
public: | ||
Group(const std::string&, const Bar&, const Json::Value&); | ||
~Group() = default; | ||
auto update() -> void; | ||
operator Gtk::Widget &(); | ||
Gtk::Box box; | ||
}; | ||
|
||
} // namespace waybar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "group.hpp" | ||
#include <fmt/format.h> | ||
#include <util/command.hpp> | ||
|
||
namespace waybar { | ||
|
||
Group::Group(const std::string& name, const Bar& bar, const Json::Value& config) | ||
: AModule(config, name, "", false, false), | ||
box{bar.vertical ? Gtk::ORIENTATION_HORIZONTAL : Gtk::ORIENTATION_VERTICAL, 0} | ||
{ | ||
} | ||
|
||
auto Group::update() -> void { | ||
// noop | ||
} | ||
|
||
Group::operator Gtk::Widget&() { return box; } | ||
|
||
} // namespace waybar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters