summaryrefslogtreecommitdiff
path: root/src/config/defaults.ts
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-02 22:12:06 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-02 22:12:06 +1100
commit579070733cf9605e96f045158ba56dcc5a9fdb80 (patch)
tree609af68ebfa294c5cb25822a9074dcbb3e93af0e /src/config/defaults.ts
parentnotifpopups: fix clicking opening sidebar (diff)
downloadcaelestia-shell-579070733cf9605e96f045158ba56dcc5a9fdb80.tar.gz
caelestia-shell-579070733cf9605e96f045158ba56dcc5a9fdb80.tar.bz2
caelestia-shell-579070733cf9605e96f045158ba56dcc5a9fdb80.zip
feat: define bar layout via config
Diffstat (limited to 'src/config/defaults.ts')
-rw-r--r--src/config/defaults.ts59
1 files changed, 30 insertions, 29 deletions
diff --git a/src/config/defaults.ts b/src/config/defaults.ts
index c67d140..570ed16 100644
--- a/src/config/defaults.ts
+++ b/src/config/defaults.ts
@@ -10,43 +10,44 @@ export default {
bar: {
vertical: true,
style: "gaps", // One of "gaps", "panel", "embedded"
- modules: {
- osIcon: {
- enabled: true,
- },
- activeWindow: {
- enabled: true,
- },
- mediaPlaying: {
- enabled: true,
+ layout: {
+ type: "centerbox", // One of "centerbox", "flowbox"
+ centerbox: {
+ start: ["osIcon", "activeWindow", "mediaPlaying", "brightnessSpacer"],
+ center: ["workspaces"],
+ end: [
+ "volumeSpacer",
+ "tray",
+ "statusIcons",
+ "pkgUpdates",
+ "notifCount",
+ "battery",
+ "dateTime",
+ "power",
+ ],
},
+ flowbox: [
+ "osIcon",
+ "workspaces",
+ "brightnessSpacer",
+ "activeWindow",
+ "volumeSpacer",
+ "dateTime",
+ "tray",
+ "battery",
+ "statusIcons",
+ "notifCount",
+ "power",
+ ],
+ },
+ modules: {
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: {