Polybar: No matching input area found

Created on 12 Feb 2017  Â·  4Comments  Â·  Source: polybar/polybar

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

Most helpful comment

%{A1:command: A2:command: A3:command: A4:command: A5:command:}

All 4 comments

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:}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

imnoone22 picture imnoone22  Â·  3Comments

nyarly picture nyarly  Â·  3Comments

guncha picture guncha  Â·  3Comments

matjaz132 picture matjaz132  Â·  4Comments

oquinena picture oquinena  Â·  4Comments