-
Notifications
You must be signed in to change notification settings - Fork 85
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
Use cosmic-settings-subscriptions
for some iced subscriptions
#492
Conversation
With pop-os/cosmic-settings-subscriptions@29b8d3f, changing the keyboard backlight with keybindings now is reflected in the applet while the applet is open. Though looks like that will need more fixes here to make sure it behaves cleanly when changing the keyboard backlight with the slider in the applet. That isn't hugely important, but is generally good, and something the OSD will need. |
6228b8f
to
e132917
Compare
These should be useful in `cosmic-osd` as well.
There's no need to deviate from a functional pattern here.
Fixes #301. Should be combined with the subscription code here to avoid duplication, and two things using pulse.
This shares a subscription with cosmic-osd, avoiding some duplication. It's also important that things like selection of the display brightness device are done consistency, and handling this in cosmic-settings-daemon is one way to ensure consistency.
Being able to define sliders this way seems like an advantage of using a seperate `brightness`/`max_brightness` instead of a float. Now the `step` of the slider is a single unit as supported by the display.
e132917
to
6358548
Compare
This makes sure we can listen to brightness subscription and set the brightness without conflicts or weird workarounds.
This and pop-os/cosmic-osd#44 should now be good to improve various issues, avoid duplication, and ensure consistency between applets and OSDs. Some things could be refactored a bit still, but that can be done later. |
cosmic-applets
andcosmic-osd
both have some iced subscription code that could be useful in the other, so a library to share this makes sense.Also we should avoid duplicating dbus bindings that are present in
dbus-settings-bindings
. (Currentlycosmic-settings-subscriptions
is using a branch ofdbus-settings-bindings
, pending pop-os/dbus-settings-bindings#15.)This should help to address several open issues in cosmic-applets and cosmic-osd.