diff --git a/include/components/builder.hpp b/include/components/builder.hpp index 36782dbc..c847d2ec 100644 --- a/include/components/builder.hpp +++ b/include/components/builder.hpp @@ -49,9 +49,9 @@ class builder { void underline_close(); void control(controltag tag); void action(mousebtn index, string action); - void action(mousebtn btn, const modules::input_handler& handler, string action); + void action(mousebtn btn, const modules::input_handler& handler, string action, string data); void action(mousebtn index, string action, const label_t& label); - void action(mousebtn btn, const modules::input_handler& handler, string action, const label_t& label); + void action(mousebtn btn, const modules::input_handler& handler, string action, string data, const label_t& label); void action_close(); protected: diff --git a/include/modules/alsa.hpp b/include/modules/alsa.hpp index f96dd44b..da97c7bb 100644 --- a/include/modules/alsa.hpp +++ b/include/modules/alsa.hpp @@ -36,7 +36,7 @@ namespace modules { static constexpr auto EVENT_TOGGLE = "toggle"; protected: - bool input(string&& action); + bool input(string&& action, string&& data); private: static constexpr auto FORMAT_VOLUME = "format-volume"; diff --git a/include/modules/backlight.hpp b/include/modules/backlight.hpp index 54fbd914..4bec7501 100644 --- a/include/modules/backlight.hpp +++ b/include/modules/backlight.hpp @@ -32,7 +32,7 @@ namespace modules { static constexpr const char* EVENT_DEC = "dec"; protected: - bool input(string&& cmd); + bool input(string&& cmd, string&& data); private: static constexpr auto TAG_LABEL = "