I'm writing a spice to control sct. Just click on the icon and take the next colorStep defined in the applet settings. You can use up to 7 steps.
It works fine if there is only one instance of that applet. But would be nice to have one instance per screen.
Thats easy you might say, just bind your settings like so:
Code: Select all
this.settings = new Settings.AppletSettings(this, metadata.uuid, instance_id)
this.settings.bind("colorStep1", "colorStep1")
sct sets the screen color temperature for all screens at once. So the applet should share their configuration.
Instead of saving the at settings[uuid][instance_id] it would be nice to use global settings in that way:
Code: Select all
this.settings = new Settings.AppletSettings(this, metadata.uuid)
Would be nice, but I haven't found a way to share the settings.
It might be possible by bad hacking, not using the binding, use my own settings object and build callbacks to sync them to the other instances...
Do you know a way to share settings between instances, use one settings collection for all instances?