mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
0caa30683c
* Remove unused function * Refactor deprecation warning * Modules take config as parameter instead of using the singleton * Bar take config as parameter instead of using the singleton * Renderer take config as parameter instead of using the singleton * Legacy Tray Manager take config as parameter instead of using the singleton * Screen take config as parameter instead of using the singleton * Controller take config as parameter instead of using the singleton * Remove the config singleton * Apply review suggestion Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com> * Apply style suggestion Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com> * Apply style suggestion Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com> * Apply style suggestion Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com> * Apply style suggestion Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com> * Apply style suggestion Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com> * Apply style suggestion Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com> * Apply style suggestion Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com> * Apply style suggestion Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com> * Apply style suggestion Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com> --------- Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com>
28 lines
633 B
C++
28 lines
633 B
C++
#pragma once
|
|
|
|
#include "common.hpp"
|
|
#include "components/bar.hpp"
|
|
#include "modules/meta/static_module.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 = "internal/tray";
|
|
|
|
private:
|
|
static constexpr const char* TAG_TRAY{"<tray>"};
|
|
|
|
tray::manager m_tray;
|
|
};
|
|
} // namespace modules
|
|
POLYBAR_NS_END
|