Open freddylist opened 2 years ago
If you want, I can do a pull request, maybe similar to #40?
Alternatively we can start listing examples by language, something like the following:
These scripts listen to volume and mute events. No matter how the volume changes (keybindings, pulse control panel, headphones plugged-in*), it will instantly show up the volume bar.
*I'm not yet sure how to get the "headphones plugged-in" part with shell scripting...
One can access the brightness value from /sys/class/backlight/video_backlight/brightness
(where video
is your video device). The following scripts watch for modifications on that file. No matter how the brightness changes, these scripts will return the new brightness value. You may have to finagle with the path to brightness
if you are not using an Intel device. Simply pipe one of these in xob and you are ready to go.
Just tell me what else you would like to have included and I will have the pull request ready.
I think it will be better just to make a list with urls to repos with different scripts for xob with description.
Thank you very much for your suggestions.
On the one hand I would be very happy to get rid of python in the examples provided in the README, but on the other hand, after years of users opening issues about those scripts, we have finally reached a point where nobody ever complains again. In particular, the pulse audio listener has become very reliable and works out of the box for everybody (according to the fact no issues are opened about it anymore). Both your suggestions @freddylist and @juster-0 make sense. Just note that, for the time being at least, I wish to keep suggesting the python scripts first because time has proven they are reliable.
I plan to review and merge #43 and the new color config feature branch into a new major xob release when I get enough free time. Feel free to open your PR and I will eventually get it merged too.
The current brightness and volume bar scripts require a Python installation as well as some Python libraries. I propose we also suggest some simpler shell scripts with minimal dependencies.
Here are some implementations I've come up with, they work for me but I'm new to shell scripting so there is probably room for improvement:
Brightness bar requires only
inotify-tools
Volume bar requires only
alsa-utils
(and optionally Wireplumber with Pipewire)