-
-
Notifications
You must be signed in to change notification settings - Fork 13
Schedules #89
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
base: main
Are you sure you want to change the base?
Schedules #89
Conversation
|
Some things to discuss here:
|
This comment was marked as outdated.
This comment was marked as outdated.
|
@danirabbit regarding UI any suggestions where to put it? (ike which plug, maybe desktop? Or maybe even a separate one?) To make it powerful we'd probably need a list where we can add schedules, enable/disable, edit and delete them and a dialog where the user can choose the type of the schedule, the settings that get toggled and possibly even the inactive settings that get toggled (maybe something like a reverse changes on becoming inactive - custom switch). |
|
@leolost2605 I think it might be its own new top level plugin |
|
Ok this should be ready for initial reviews and testing together with the corresponding switchboard plug: elementary/settings-schedules |
|
I think one thing that's fundamentally different here from what I had in mind is that scheduling wasn't the primary thing I was going for. A focus mode like "Sleep" might be scheduled automatically between like 22:00–07:00 but if I go to bed at 21:00 I want to be able to manually set my focus to "Sleep". Likewise a focus like "Work" might not be scheduled at all but instead be set manually or by location. A focus "Driving" might be set when I'm traveling at a certain speed or Bluetooth connected to a car. Scheduling was only one small way to set focus modes |
|
So in this model you wouldn't really enable or disable focuses from a list of focus modes. They're just things you have available and you can pick one (and only one) at any time. It's like setting your current status and the computer adapts to match that status |

Working prototype of schedules.
Currently available are:
Settings:
The current way schedules are set up is as follows:
Schedules are stored as gsettings
Starts to fix #64
Fixes #11
For example some defaults (Should we provide them as actual disabled default to show the user some examples?):
[('a355ce91-d033-4f43-9f3c-cbef1b1a7c29', 0, 'Bedtime', false, {'from': <7.0>, 'to': <23.0>}, {'dnd': <true>, 'monochrome': <true>}, {}), ('2b3688c4-e037-4e58-8dde-f48b86dcff9f', 1, 'Night Time', false, {}, {'dark-mode': <true>}, {})]