diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-05 18:17:42 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-05 18:17:42 +1100 |
| commit | ded52a0f1d980bb9d9ef82866ab57e1b117ac8cc (patch) | |
| tree | bf88ca1ef02fab96f27c5b51718a6334632c4a46 /src/config | |
| parent | thumbnailer: use sha1sum for caching (diff) | |
| download | caelestia-shell-ded52a0f1d980bb9d9ef82866ab57e1b117ac8cc.tar.gz caelestia-shell-ded52a0f1d980bb9d9ef82866ab57e1b117ac8cc.tar.bz2 caelestia-shell-ded52a0f1d980bb9d9ef82866ab57e1b117ac8cc.zip | |
thumbnailer: add configs
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/defaults.ts | 9 | ||||
| -rw-r--r-- | src/config/index.ts | 2 | ||||
| -rw-r--r-- | src/config/types.ts | 5 |
3 files changed, 15 insertions, 1 deletions
diff --git a/src/config/defaults.ts b/src/config/defaults.ts index e3fe68d..f375620 100644 --- a/src/config/defaults.ts +++ b/src/config/defaults.ts @@ -147,4 +147,13 @@ export default { upcomingDays: 7, // Number of days which count as upcoming notify: true, }, + thumbnailer: { + maxAttempts: 5, + timeBetweenAttempts: 300, + defaults: { + width: 100, + height: 100, + exact: true, + }, + }, }; diff --git a/src/config/index.ts b/src/config/index.ts index 0cb8a60..631aa1d 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -10,7 +10,6 @@ export const { notifpopups, osds, sidebar, - sideleft, math, updates, weather, @@ -20,5 +19,6 @@ export const { storage, wallpapers, calendar, + thumbnailer, } = config; export default config; diff --git a/src/config/types.ts b/src/config/types.ts index 8936937..226b2dd 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -82,4 +82,9 @@ export default { "calendar.webcals": ARR(STR), "calendar.upcomingDays": NUM, "calendar.notify": BOOL, + "thumbnailer.maxAttempts": NUM, + "thumbnailer.timeBetweenAttempts": NUM, + "thumbnailer.defaults.width": NUM, + "thumbnailer.defaults.height": NUM, + "thumbnailer.defaults.exact": BOOL, } as { [k: string]: string | string[] | number[] }; |