On 18.05.2021 22:57, Fabien BERNARD wrote:
To go further, we may even want to remove this "get_volume" method. Or
to change it by using an import of this GenPollText widget.
It should be simplier for everyone.
Since you are using Pulseaudio it "easier" to just use the pulse_volume
widget.
It's not documented, but it does exist[1] and work great for me.
Depending on how you installed Qtile, you might have to compile it first
with
cd /usr/lib/python3.9/site-packages
sudo python3 libqtile/widget/pulseaudio_ffi.py
to compile it you need at least python3-devel and pulseaudio-devel
installed.
The compile process create following 3 files
libqtile/widget/_pulse_audio.c
libqtile/widget/_pulse_audio.o
libqtile/widget/_pulse_audio.cpython-39-x86_64-linux-gnu.so
Then you can add it to the bar "widget.PulseVolume(),".
[1]
https://github.com/qtile/qtile/blob/master/libqtile/widget/pulse_volume.py
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qtile-dev/0e37366d6e9927b1a15bb1ceb8e42fdc%40olstad.com.