summaryrefslogtreecommitdiff
path: root/src/config/types.ts
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-26 22:36:23 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-26 22:36:23 +1000
commit3c579d0e275cdaf6f2c9589abade94bde7905c82 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /src/config/types.ts
parentschemes: fix (diff)
downloadcaelestia-shell-3c579d0e275cdaf6f2c9589abade94bde7905c82.tar.gz
caelestia-shell-3c579d0e275cdaf6f2c9589abade94bde7905c82.tar.bz2
caelestia-shell-3c579d0e275cdaf6f2c9589abade94bde7905c82.zip
clean
Remove everything
Diffstat (limited to 'src/config/types.ts')
-rw-r--r--src/config/types.ts93
1 files changed, 0 insertions, 93 deletions
diff --git a/src/config/types.ts b/src/config/types.ts
deleted file mode 100644
index c8fb9b4..0000000
--- a/src/config/types.ts
+++ /dev/null
@@ -1,93 +0,0 @@
-import { BAR_MODULES, NEWS_CATEGORIES, NEWS_COUNTRIES, NEWS_LANGUAGES } from "./literals";
-
-const BOOL = "boolean";
-const STR = "string";
-const NUM = "number";
-const ARR = (type: string | string[]) => `array of ${typeof type === "string" ? type : JSON.stringify(type)}`;
-const OBJ_ARR = (shape: object) => ARR(JSON.stringify(shape));
-
-export default {
- "style.transparency": ["off", "low", "normal", "high"],
- "style.borders": BOOL,
- "style.vibrant": BOOL,
- "config.notifyOnError": BOOL,
- // Bar
- "bar.vertical": BOOL,
- "bar.style": ["gaps", "panel", "embedded"],
- "bar.layout.type": ["centerbox", "flowbox"],
- "bar.layout.centerbox.start": ARR(BAR_MODULES),
- "bar.layout.centerbox.center": ARR(BAR_MODULES),
- "bar.layout.centerbox.end": ARR(BAR_MODULES),
- "bar.layout.flowbox": ARR(BAR_MODULES),
- "bar.modules.workspaces.shown": NUM,
- "bar.modules.workspaces.showLabels": BOOL,
- "bar.modules.workspaces.labels": ARR(STR),
- "bar.modules.workspaces.xalign": NUM,
- "bar.modules.workspaces.showWindows": BOOL,
- "bar.modules.dateTime.format": STR,
- "bar.modules.dateTime.detailedFormat": STR,
- // Launcher
- "launcher.style": ["lines", "round"],
- "launcher.actionPrefix": STR,
- "launcher.apps.maxResults": NUM,
- "launcher.files.maxResults": NUM,
- "launcher.files.fdOpts": ARR(STR),
- "launcher.files.shortenThreshold": NUM,
- "launcher.math.maxResults": NUM,
- "launcher.todo.notify": BOOL,
- "launcher.wallpaper.maxResults": NUM,
- "launcher.wallpaper.showAllEmpty": BOOL,
- "launcher.wallpaper.style": ["compact", "medium", "large"],
- "launcher.disabledActions": ARR(STR),
- // Notif popups
- "notifpopups.maxPopups": NUM,
- "notifpopups.expire": BOOL,
- "notifpopups.agoTime": BOOL,
- // OSDs
- "osds.volume.position": [2, 4, 8, 16],
- "osds.volume.margin": NUM,
- "osds.volume.hideDelay": NUM,
- "osds.volume.showValue": BOOL,
- "osds.brightness.position": [2, 4, 8, 16],
- "osds.brightness.margin": NUM,
- "osds.brightness.hideDelay": NUM,
- "osds.brightness.showValue": BOOL,
- "osds.lock.spacing": NUM,
- "osds.lock.caps.hideDelay": NUM,
- "osds.lock.num.hideDelay": NUM,
- // Sidebar
- "sidebar.showOnStartup": BOOL,
- "sidebar.modules.headlines.enabled": BOOL,
- // Navbar
- "navbar.persistent": BOOL,
- "navbar.appearWidth": NUM,
- "navbar.showLabels": BOOL,
- // Services
- "math.maxHistory": NUM,
- "updates.interval": NUM,
- "weather.interval": NUM,
- "weather.apiKey": STR,
- "weather.location": STR,
- "weather.imperial": BOOL,
- "cpu.interval": NUM,
- "gpu.interval": NUM,
- "memory.interval": NUM,
- "storage.interval": NUM,
- "wallpapers.paths": OBJ_ARR({ recursive: BOOL, path: STR, threshold: NUM }),
- "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,
- "news.apiKey": STR,
- "news.countries": ARR(NEWS_COUNTRIES),
- "news.categories": ARR(NEWS_CATEGORIES),
- "news.languages": ARR(NEWS_LANGUAGES),
- "news.domains": ARR(STR),
- "news.excludeDomains": ARR(STR),
- "news.timezone": STR,
- "news.pages": NUM,
-} as { [k: string]: string | string[] | number[] };