polybar-dwm/include/modules/meta/input_handler.hpp
patrick96 a287fb5e8c fix: Use module name in action string
Action strings now have the form '#MODULE#ACTION'

For example to trigger the action 'toggle' in the 'module/date' module
one would now use '%{A1:#date#toggle:}'

With this action strings can now be uniquely assigned to one module.

Fixes #1172
2020-11-26 20:53:53 +01:00

21 lines
315 B
C++

#pragma once
#include "common.hpp"
POLYBAR_NS
namespace modules {
class input_handler {
public:
virtual ~input_handler() {}
/**
* Handle command
*
* \returns true if the command is supported and false otherwise
*/
virtual bool input(string&& cmd) = 0;
};
}
POLYBAR_NS_END