diff --git a/include/modules/alsa.hpp b/include/modules/alsa.hpp index 21903382..dd28b03a 100644 --- a/include/modules/alsa.hpp +++ b/include/modules/alsa.hpp @@ -36,7 +36,15 @@ namespace modules { static constexpr auto EVENT_TOGGLE = "toggle"; protected: - bool input(const string& action, const string& data); + void action_inc(); + void action_dec(); + void action_toggle(); + + void change_volume(int interval); + + void action_epilogue(const vector& mixers); + + vector get_mixers(); private: static constexpr auto FORMAT_VOLUME = "format-volume"; diff --git a/include/modules/backlight.hpp b/include/modules/backlight.hpp index 779821ba..34dcfe4a 100644 --- a/include/modules/backlight.hpp +++ b/include/modules/backlight.hpp @@ -32,7 +32,10 @@ namespace modules { static constexpr const char* EVENT_DEC = "dec"; protected: - bool input(const string& action, const string& data); + void action_inc(); + void action_dec(); + + void change_value(int value_mod); private: static constexpr auto TAG_LABEL = "