2022-04-15 17:50:04 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.hpp"
|
|
|
|
#include "components/bar.hpp"
|
|
|
|
#include "modules/meta/static_module.hpp"
|
2023-05-08 13:36:12 -04:00
|
|
|
#include "modules/meta/types.hpp"
|
2022-08-28 09:15:48 -04:00
|
|
|
#include "x11/tray_manager.hpp"
|
2022-04-15 17:50:04 -04:00
|
|
|
|
|
|
|
POLYBAR_NS
|
|
|
|
namespace modules {
|
2022-10-31 18:21:00 -04:00
|
|
|
class tray_module : public static_module<tray_module> {
|
|
|
|
public:
|
2023-05-01 08:58:52 -04:00
|
|
|
explicit tray_module(const bar_settings& bar_settings, string name_, const config&);
|
2022-10-31 18:21:00 -04:00
|
|
|
string get_format() const;
|
2022-04-15 17:50:04 -04:00
|
|
|
|
2022-10-31 18:21:00 -04:00
|
|
|
void start() override;
|
2022-08-28 09:15:48 -04:00
|
|
|
|
2022-10-31 18:21:00 -04:00
|
|
|
bool build(builder* builder, const string& tag) const;
|
|
|
|
void update() {}
|
2022-04-15 17:50:04 -04:00
|
|
|
|
2023-05-08 13:36:12 -04:00
|
|
|
static constexpr auto TYPE = TRAY_TYPE;
|
2022-04-15 17:50:04 -04:00
|
|
|
|
2022-10-31 18:21:00 -04:00
|
|
|
private:
|
|
|
|
static constexpr const char* TAG_TRAY{"<tray>"};
|
2022-04-15 17:50:04 -04:00
|
|
|
|
2022-10-31 18:21:00 -04:00
|
|
|
tray::manager m_tray;
|
|
|
|
};
|
2022-08-28 09:15:48 -04:00
|
|
|
} // namespace modules
|
2022-04-15 17:50:04 -04:00
|
|
|
POLYBAR_NS_END
|