2017-01-01 20:28:28 +00:00
|
|
|
#if DEBUG
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "modules/meta/static_module.hpp"
|
|
|
|
|
|
|
|
POLYBAR_NS
|
|
|
|
|
|
|
|
class connection;
|
|
|
|
|
|
|
|
namespace modules {
|
|
|
|
/**
|
|
|
|
* Module used to display information about the
|
|
|
|
* currently active X window.
|
|
|
|
*/
|
2019-12-02 18:14:26 +00:00
|
|
|
class systray_module : public static_module<systray_module> {
|
2017-01-01 20:28:28 +00:00
|
|
|
public:
|
|
|
|
explicit systray_module(const bar_settings&, string);
|
|
|
|
|
|
|
|
void update();
|
|
|
|
bool build(builder* builder, const string& tag) const;
|
|
|
|
|
2020-05-15 17:59:08 +00:00
|
|
|
static constexpr auto TYPE = "internal/systray";
|
|
|
|
|
2020-05-24 16:35:12 +00:00
|
|
|
static constexpr auto EVENT_TOGGLE = "toggle";
|
|
|
|
|
2017-01-01 20:28:28 +00:00
|
|
|
protected:
|
2020-05-23 22:36:16 +00:00
|
|
|
bool input(string&& action, string&& data);
|
2017-01-01 20:28:28 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
static constexpr const char* TAG_LABEL_TOGGLE{"<label-toggle>"};
|
|
|
|
static constexpr const char* TAG_TRAY_CLIENTS{"<tray-clients>"};
|
|
|
|
|
|
|
|
connection& m_connection;
|
|
|
|
label_t m_label;
|
|
|
|
|
|
|
|
bool m_hidden{false};
|
|
|
|
};
|
2020-05-15 17:59:08 +00:00
|
|
|
} // namespace modules
|
2017-01-01 20:28:28 +00:00
|
|
|
|
|
|
|
POLYBAR_NS_END
|
|
|
|
#endif
|