1 #if DEBUG
2 #pragma once
3 
4 #include "modules/meta/static_module.hpp"
5 
6 POLYBAR_NS
7 
8 class connection;
9 
10 namespace modules {
11   /**
12    * Module used to display information about the
13    * currently active X window.
14    */
15   class systray_module : public static_module<systray_module> {
16    public:
17     explicit systray_module(const bar_settings&, string);
18 
19     void update();
20     bool build(builder* builder, const string& tag) const;
21 
22     static constexpr auto TYPE = "internal/systray";
23 
24     static constexpr auto EVENT_TOGGLE = "toggle";
25 
26    protected:
27     bool input(const string& action, const string& data);
28 
29    private:
30 
31     static constexpr const char* TAG_LABEL_TOGGLE{"<label-toggle>"};
32     static constexpr const char* TAG_TRAY_CLIENTS{"<tray-clients>"};
33 
34     connection& m_connection;
35     label_t m_label;
36 
37     bool m_hidden{false};
38   };
39 }  // namespace modules
40 
41 POLYBAR_NS_END
42 #endif
43