You are not logged in.
Hi,
I've been working on my first rice in Qtile, and there's a problem that I couldn't solve.
I tried to add mouse callbacks for some of my bar widgets, but I just couldn't get it to work.
Here's the snippet for opening pavucontrol when clicking on the volume widget:
def open_pavu(qtile):
qtile.cmd_spawn("pavucontrol")
topBar = bar.Bar([
# ...
# Volume
widget.TextBox(
text="墳", foreground=colors["green"], fontsize=17,
mouse_callbacks={
'Button1': open_pavu},
volume_app="pavucontrol"),
widget.Volume(foreground=colors["green"],
mouse_callbacks={'Button1': open_pavu},),
],
# ...
)
# ...
But it just doesn't work.
I tried the stable qtile release, and qtile-git from the AUR, still doesn't work.
How could I fix this?
Last edited by AmitGold (2021-06-18 11:12:04)
Offline
From QTile changelog:
- mouse_callbacks no longer receives the qtile object as an argument
(they receive no arguments); import it via `from libqtile import
qtile` instead.
SzzS
Sorry, I don't speak english well.
Offline
Thank you very much!
Offline