diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-02 22:12:06 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-02 22:12:06 +1100 |
| commit | 579070733cf9605e96f045158ba56dcc5a9fdb80 (patch) | |
| tree | 609af68ebfa294c5cb25822a9074dcbb3e93af0e /src/config/defaults.ts | |
| parent | notifpopups: fix clicking opening sidebar (diff) | |
| download | caelestia-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.ts | 59 |
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: { |