mirror of
https://github.com/polybar/polybar.git
synced 2026-02-09 01:45:37 +00:00
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
21 lines
315 B
C++
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
|