diff --git a/include/common.hpp b/include/common.hpp index e726a9db..b3153e95 100644 --- a/include/common.hpp +++ b/include/common.hpp @@ -68,6 +68,7 @@ using std::to_string; using std::strerror; using std::getenv; using std::thread; +using std::exception; using boost::optional; diff --git a/include/modules/xbacklight.hpp b/include/modules/xbacklight.hpp index 12e00fa2..bc51d640 100644 --- a/include/modules/xbacklight.hpp +++ b/include/modules/xbacklight.hpp @@ -9,7 +9,6 @@ #include "drawtypes/progressbar.hpp" #include "drawtypes/ramp.hpp" #include "modules/meta.hpp" -#include "utils/throttle.hpp" LEMONBUDDY_NS @@ -35,21 +34,31 @@ namespace modules { void setup(); void handle(const evt::randr_notify& evt); void update(); + string get_output(); bool build(builder* builder, string tag) const; + bool handle_event(string cmd); + bool receive_events() const { + return true; + } private: static constexpr auto TAG_LABEL = "