mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
f5169abde2
* Remove unsupported.hpp * Rename names.hpp to types.hpp * Replace macro by function * Add missing cassert include in controller.cpp
29 lines
661 B
C++
29 lines
661 B
C++
#pragma once
|
|
|
|
#include "common.hpp"
|
|
#include "components/bar.hpp"
|
|
#include "modules/meta/static_module.hpp"
|
|
#include "modules/meta/types.hpp"
|
|
#include "x11/tray_manager.hpp"
|
|
|
|
POLYBAR_NS
|
|
namespace modules {
|
|
class tray_module : public static_module<tray_module> {
|
|
public:
|
|
explicit tray_module(const bar_settings& bar_settings, string name_, const config&);
|
|
string get_format() const;
|
|
|
|
void start() override;
|
|
|
|
bool build(builder* builder, const string& tag) const;
|
|
void update() {}
|
|
|
|
static constexpr auto TYPE = TRAY_TYPE;
|
|
|
|
private:
|
|
static constexpr const char* TAG_TRAY{"<tray>"};
|
|
|
|
tray::manager m_tray;
|
|
};
|
|
} // namespace modules
|
|
POLYBAR_NS_END
|