-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a widget to control brightness with light
command
#205
base: main
Are you sure you want to change the base?
Conversation
Hey @ronniedroid - thanks for submitting this. I'll take a look over this when I can. |
The problem I have with this is that I'm not sure what it really adds over the existing widget. You can control other lights (e.g. keyboard LEDs) with the existing widget too by changing the What am I missing? On a related note, I wonder if your delay comes from the calls to |
Well, I also thought so, but
|
Yes. That's the bit I don't like about the current widget but I'm curious how
The current widget should work on both. Does it not? |
From what I can tell, I don't know if that's enough of a reason to have a new widget. |
What about having it as an option for people who would prefer/will have a better luck with |
I switched to drawing the Icon with cairo, it is not too fancy, Just a circle which gets empty and full based on brightness level, and the fill and border color can be changed for four levels of brightness. if anyone knows cairo better than me and can make it fancier, please do so. I think having this color changing icon (plus the bar) adds enough difference from the already included brightness widget too, what do you think? |
light
is a good program to get brightness states of many devices and also control them, once can use this same module to control the keyboard brightness, for example, by changing the device.I based my widget on your
alsavolumecontrol.py
Please let me know if I should change something.
one other thing, while the ALSAWidget updates instantly, this one takes a sec to update, maybe you will know why :-) as I am not a python programmer (My first project)
anyway, I hope you will like it.