mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(sway/scratchpad): add some configs
Add some configs for displaying. Remove draft codes.
This commit is contained in:
@ -12,10 +12,9 @@
|
||||
#include "util/json.hpp"
|
||||
|
||||
namespace waybar::modules::sway {
|
||||
// class Scratchpad : public AModule, public sigc::trackable {
|
||||
class Scratchpad : public ALabel {
|
||||
public:
|
||||
Scratchpad(const std::string&, const waybar::Bar&, const Json::Value&);
|
||||
Scratchpad(const std::string&, const Json::Value&);
|
||||
~Scratchpad() = default;
|
||||
auto update() -> void;
|
||||
|
||||
@ -23,11 +22,13 @@ class Scratchpad : public ALabel {
|
||||
auto getTree() -> void;
|
||||
auto onCmd(const struct Ipc::ipc_response&) -> void;
|
||||
auto onEvent(const struct Ipc::ipc_response&) -> void;
|
||||
// bool handleScroll(GdkEventScroll*);
|
||||
Gtk::Box box_;
|
||||
const Bar& bar_;
|
||||
std::mutex mutex_;
|
||||
|
||||
std::string tooltip_format_;
|
||||
bool show_empty_;
|
||||
bool tooltip_enabled_;
|
||||
std::string tooltip_text_;
|
||||
int count_;
|
||||
std::mutex mutex_;
|
||||
Ipc ipc_;
|
||||
util::JsonParser parser_;
|
||||
};
|
||||
|
Reference in New Issue
Block a user