The following config
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000
label = "%percentage%"
click-left = "termite -e htop"
The click action does not work and results in warn: No matching input area found (btn=1).
Clicking on other modules with internal click settings like custom/menu and internal/date works (but not using the click-left setting)
> polybar -v
polybar 3.0.4
Features: +alsa +curl +i3 +mpd +network
Hi, AFAIK cpu module doesn't support left click at all , in opposite to menu and date.
For now you would need to use raw tags to add click handlers to modules that doens't support it. See the wiki for more details. For example:
~ dosini
[module/cpu]
...
label = %{A1:termite -e htop&:}CPU %percentage%%%{A}
...
~
How do I format it to add both right click and left click (and possibly middle click & scroll events) to a module?
%{A1:command: A2:command: A3:command: A4:command: A5:command:}
Most helpful comment
%{A1:command: A2:command: A3:command: A4:command: A5:command:}