#pragma once #include "components/config.hpp" #include "modules/meta/inotify_module.hpp" #include "modules/meta/input_handler.hpp" #include "settings.hpp" POLYBAR_NS namespace modules { class backlight_module : public inotify_module, public input_handler { public: struct brightness_handle { void filepath(const string& path); float read() const; private: string m_path; }; string get_output(); public: explicit backlight_module(const bar_settings&, string); void idle(); bool on_event(inotify_event* event); bool build(builder* builder, const string& tag) const; protected: bool input(string&& cmd); private: static constexpr auto TAG_LABEL = "