summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-25 21:51:59 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-25 21:51:59 +1100
commite8a40f31c904baeaa1817cd3e418df5ce71302c1 (patch)
treede5b15228d2e7227560db91131006ee55af82049 /src/config
parentsidebar: media handle no players (diff)
downloadcaelestia-shell-e8a40f31c904baeaa1817cd3e418df5ce71302c1.tar.gz
caelestia-shell-e8a40f31c904baeaa1817cd3e418df5ce71302c1.tar.bz2
caelestia-shell-e8a40f31c904baeaa1817cd3e418df5ce71302c1.zip
sidebar: create upcoming module
Requires ical.js and curl
Diffstat (limited to 'src/config')
-rw-r--r--src/config/defaults.ts4
-rw-r--r--src/config/index.ts1
-rw-r--r--src/config/types.ts2
3 files changed, 7 insertions, 0 deletions
diff --git a/src/config/defaults.ts b/src/config/defaults.ts
index d699a45..b6bee4f 100644
--- a/src/config/defaults.ts
+++ b/src/config/defaults.ts
@@ -143,4 +143,8 @@ export default {
},
],
},
+ calendar: {
+ webcals: [] as string[], // An array of urls to ICS files which you can curl
+ upcomingDays: 7, // Number of days which count as upcoming
+ },
};
diff --git a/src/config/index.ts b/src/config/index.ts
index d09a668..3f9bf7a 100644
--- a/src/config/index.ts
+++ b/src/config/index.ts
@@ -18,5 +18,6 @@ export const {
memory,
storage,
wallpapers,
+ calendar,
} = config;
export default config;
diff --git a/src/config/types.ts b/src/config/types.ts
index aa0d921..cf828b6 100644
--- a/src/config/types.ts
+++ b/src/config/types.ts
@@ -68,4 +68,6 @@ export default {
"memory.interval": NUM,
"storage.interval": NUM,
"wallpapers.paths": OBJ_ARR({ recursive: BOOL, path: STR }),
+ "calendar.webcals": ARR(STR),
+ "calendar.upcomingDays": NUM,
} as { [k: string]: string | string[] | number[] };