diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-23 16:16:21 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-23 16:16:21 +1100 |
| commit | 1ffd7e1d54dd33311440cf4f6c0b2debca042c4d (patch) | |
| tree | 9bd9ac018309944e7698fb825b4c09dc6ed6b4fe /src/config/defaults.ts | |
| parent | sideright: fix calender underline (diff) | |
| download | caelestia-shell-1ffd7e1d54dd33311440cf4f6c0b2debca042c4d.tar.gz caelestia-shell-1ffd7e1d54dd33311440cf4f6c0b2debca042c4d.tar.bz2 caelestia-shell-1ffd7e1d54dd33311440cf4f6c0b2debca042c4d.zip | |
config: refactor
Diffstat (limited to 'src/config/defaults.ts')
| -rw-r--r-- | src/config/defaults.ts | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/src/config/defaults.ts b/src/config/defaults.ts new file mode 100644 index 0000000..d699a45 --- /dev/null +++ b/src/config/defaults.ts @@ -0,0 +1,146 @@ +import { Astal } from "astal/gtk3"; + +export default { + style: { + transparency: "normal", // One of "off", "normal", "high" + vibrant: false, // Extra saturation + }, + // Modules + bar: { + vertical: true, + modules: { + osIcon: { + enabled: true, + }, + activeWindow: { + enabled: true, + }, + mediaPlaying: { + enabled: true, + }, + workspaces: { + enabled: true, + shown: 5, + }, + tray: { + enabled: true, + }, + statusIcons: { + enabled: true, + }, + pkgUpdates: { + enabled: true, + }, + notifCount: { + enabled: true, + }, + battery: { + enabled: true, + }, + dateTime: { + enabled: true, + format: "%d/%m/%y %R", + detailedFormat: "%c", + }, + power: { + enabled: true, + }, + }, + }, + launcher: { + actionPrefix: ">", // Prefix for launcher actions + apps: { + maxResults: 30, // Actual max results, -1 for infinite + }, + files: { + maxResults: 40, // Actual max results, -1 for infinite + fdOpts: ["-a", "-t", "f"], // Options to pass to `fd` + shortenThreshold: 30, // Threshold to shorten paths in characters + }, + math: { + maxResults: 40, // Actual max results, -1 for infinite + }, + todo: { + notify: true, + }, + wallpaper: { + style: "medium", // One of "compact", "medium", "large" + }, + disabledActions: ["logout", "shutdown", "reboot", "hibernate"], // Actions to hide, see launcher/actions.tsx for available actions + }, + notifpopups: { + maxPopups: -1, + expire: false, + agoTime: true, // Whether to show time in ago format, e.g. 10 mins ago, or raw time, e.g. 10:42 + }, + osds: { + volume: { + position: Astal.WindowAnchor.RIGHT, // Top = 2, Right = 4, Left = 8, Bottom = 16 + margin: 20, + hideDelay: 1500, + showValue: true, + }, + brightness: { + position: Astal.WindowAnchor.LEFT, // Top = 2, Right = 4, Left = 8, Bottom = 16 + margin: 20, + hideDelay: 1500, + showValue: true, + }, + lock: { + spacing: 5, + caps: { + hideDelay: 1000, + }, + num: { + hideDelay: 1000, + }, + }, + }, + sideleft: { + directories: { + left: { + top: " Downloads", + middle: " Documents", + bottom: " Music", + }, + right: { + top: " Pictures", + middle: " Videos", + bottom: " Home", + }, + }, + }, + // Services + math: { + maxHistory: 100, + }, + updates: { + interval: 900000, + }, + weather: { + interval: 600000, + key: "assets/weather-api-key.txt", // Path to file containing api key relative to the base directory. To get a key, visit https://weatherapi.com/ + location: "", // Location as a string or empty to autodetect + imperial: false, + }, + cpu: { + interval: 2000, + }, + gpu: { + interval: 2000, + }, + memory: { + interval: 5000, + }, + storage: { + interval: 5000, + }, + wallpapers: { + paths: [ + { + recursive: true, // Whether to search recursively + path: "~/Pictures/Wallpapers", // Path to search + }, + ], + }, +}; |