Easy way to refresh generic_poll_text on mouse click? #2982
-
Is there an easy way to refresh generic_poll_text on mouse click? |
Beta Was this translation helpful? Give feedback.
Answered by
elParaguayo
Nov 5, 2021
Replies: 1 comment 5 replies
-
It's slightly easier now if you've got the latest git version installed as we just merged a change that would help here. Assuming you do, you could add the following callback {"Button1": lazy.widget["genpolltext"].function(lambda w: w.update(w.poll())} If you're not on latest git then try def tick_widget():
qtile.cmd_spawn("qtile cmd-obj -o widget genpolltext -f eval -a 'self.update(self.poll())'")
...
{"Button1": tick_widget} If you have more than one GenPollText widget the you may need to name it (name=...) and use that name instead of "genpolltext". |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
Sonic803
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's slightly easier now if you've got the latest git version installed as we just merged a change that would help here.
Assuming you do, you could add the following callback
If you're not on latest git then try
If you have more than one GenPollText widget the you may need to name it (name=...) and use that name instead of "genpolltext".