nlpsuge/gnome-shell-extension-another-window-session-manager

Time based session restoring

rwjack opened this issue · 2 comments

Seemed like a pretty cool idea I thought of while taking a shower.

It would just be a simple automation to prevent unnecessary clicks.

Example, each session has it's "timeframe" array, of type date-range.
Session 1 - timeframe = [ Mon 08:00 - Fri 16:00 ] # If automatic restoring for this session is enabled, and the timerange fits (after Mon 08:00 and before Fri 16:00), open it, otherwise just skip it. This is only for automations, a button click should restore the session any time it is pressed.
Session 2 - timeframe = [ Mon 08:00 - Mon 16:00 , Fri 08:00 - Fri 16:00] # This session only opens only on Monday and Friday, during work hours
Session 3 - timeframe = [ every day ] # If enabled, opens every time

It would just be a simple automation to prevent unnecessary clicks.

In term of automation, you mean when auto-restore a session on start up, not schedule this automation during the computer is running, right?

Correct