mirror of
https://github.com/polybar/polybar.git
synced 2026-03-01 21:58:53 +00:00
actions: Use #name.action[.data] format
This looks a bit nicer than #name#action[.data]
This commit is contained in:
committed by
Patrick Ziegler
parent
bc1b86c584
commit
6618320947
@ -6,7 +6,7 @@ POLYBAR_NS
|
||||
|
||||
namespace actions_util {
|
||||
string get_action_string(const modules::input_handler& handler, string action, string data) {
|
||||
string str = "#" + handler.input_handler_name() + "#" + action;
|
||||
string str = "#" + handler.input_handler_name() + "." + action;
|
||||
if (!data.empty()) {
|
||||
str += "." + data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user