diff options
author | James Andariese <jandarie@uaa.alaska.edu> | 2022-02-27 02:17:48 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-27 09:17:48 +0100 |
commit | deb5b3d025ee42a78816b5a57489722239bbbbeb (patch) | |
tree | c9a8a82c95efdb3cb6a510e3911fb2bb2625439b /src/config.ts | |
parent | 5.7.1-nightly.16 [skip ci] (diff) | |
download | ferdium-app-deb5b3d025ee42a78816b5a57489722239bbbbeb.tar.gz ferdium-app-deb5b3d025ee42a78816b5a57489722239bbbbeb.tar.zst ferdium-app-deb5b3d025ee42a78816b5a57489722239bbbbeb.zip |
Add configurable hibernation interval after auto-wakeup (#2422)
Diffstat (limited to 'src/config.ts')
-rw-r--r-- | src/config.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/config.ts b/src/config.ts index 5c9fbaee4..3dbcd809b 100644 --- a/src/config.ts +++ b/src/config.ts | |||
@@ -58,6 +58,17 @@ export const WAKE_UP_STRATEGIES = { | |||
58 | 3600: 'Wake up after 1hour', | 58 | 3600: 'Wake up after 1hour', |
59 | }; | 59 | }; |
60 | 60 | ||
61 | export const WAKE_UP_HIBERNATION_STRATEGIES = { | ||
62 | 0: 'Use main hibernation strategy', | ||
63 | 10: 'Extremely Fast Hibernation (10sec)', | ||
64 | 30: 'Very Fast Hibernation (30sec)', | ||
65 | 60: 'Fast Hibernation (1min)', | ||
66 | 300: 'Normal Hibernation (5min)', | ||
67 | 600: 'Slow Hibernation (10min)', | ||
68 | 1800: 'Very Slow Hibernation (30min)', | ||
69 | 3600: 'Extremely Slow Hibernation (1hour)', | ||
70 | }; | ||
71 | |||
61 | export const NAVIGATION_BAR_BEHAVIOURS = { | 72 | export const NAVIGATION_BAR_BEHAVIOURS = { |
62 | custom: 'Show navigation bar on custom websites only', | 73 | custom: 'Show navigation bar on custom websites only', |
63 | always: 'Show navigation bar on all services', | 74 | always: 'Show navigation bar on all services', |
@@ -217,6 +228,8 @@ export const DEFAULT_APP_SETTINGS = { | |||
217 | hibernateOnStartup: true, | 228 | hibernateOnStartup: true, |
218 | hibernationStrategy: '300', // seconds | 229 | hibernationStrategy: '300', // seconds |
219 | wakeUpStrategy: '300', // seconds | 230 | wakeUpStrategy: '300', // seconds |
231 | wakeUpHibernationStrategy: '0', // seconds -- 0 means do the same as hibernationStrategy | ||
232 | wakeUpHibernationSplay: true, | ||
220 | inactivityLock: 0, | 233 | inactivityLock: 0, |
221 | automaticUpdates: true, | 234 | automaticUpdates: true, |
222 | universalDarkMode: true, | 235 | universalDarkMode: true, |