diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-26 13:10:48 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-26 13:10:48 +1100 |
| commit | 9963f169766c31f2a8b8844c588285e6c58a4ae8 (patch) | |
| tree | 07166756a9059370ce200c376f7965368240a07a /src | |
| parent | sidebar: notifpane + scroll switch panes (diff) | |
| download | caelestia-shell-9963f169766c31f2a8b8844c588285e6c58a4ae8.tar.gz caelestia-shell-9963f169766c31f2a8b8844c588285e6c58a4ae8.tar.bz2 caelestia-shell-9963f169766c31f2a8b8844c588285e6c58a4ae8.zip | |
config: show sidebar on startup
Cannot be hot reloaded (for obv reasons)
Diffstat (limited to 'src')
| -rw-r--r-- | src/config/defaults.ts | 3 | ||||
| -rw-r--r-- | src/config/index.ts | 1 | ||||
| -rw-r--r-- | src/config/types.ts | 2 | ||||
| -rw-r--r-- | src/modules/sidebar/index.tsx | 3 |
4 files changed, 8 insertions, 1 deletions
diff --git a/src/config/defaults.ts b/src/config/defaults.ts index 58497a2..268687d 100644 --- a/src/config/defaults.ts +++ b/src/config/defaults.ts @@ -96,6 +96,9 @@ export default { }, }, }, + sidebar: { + showOnStartup: true, + }, sideleft: { directories: { left: { diff --git a/src/config/index.ts b/src/config/index.ts index 3f9bf7a..0cb8a60 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -9,6 +9,7 @@ export const { launcher, notifpopups, osds, + sidebar, sideleft, math, updates, diff --git a/src/config/types.ts b/src/config/types.ts index 8bcb112..150d6bd 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -49,6 +49,8 @@ export default { "osds.lock.spacing": NUM, "osds.lock.caps.hideDelay": NUM, "osds.lock.num.hideDelay": NUM, + // Sidebar + "sidebar.showOnStartup": BOOL, // Sideleft "sideleft.directories.left.top": STR, "sideleft.directories.left.middle": STR, diff --git a/src/modules/sidebar/index.tsx b/src/modules/sidebar/index.tsx index a908430..49a118b 100644 --- a/src/modules/sidebar/index.tsx +++ b/src/modules/sidebar/index.tsx @@ -1,6 +1,7 @@ import type { Monitor } from "@/services/monitors"; import { bind, register, Variable } from "astal"; import { App, Astal, Gdk, Gtk, Widget } from "astal/gtk3"; +import { sidebar } from "config"; import Dashboard from "./dashboard"; import NotifPane from "./notifpane"; @@ -16,7 +17,7 @@ export default class SideBar extends Widget.Window { monitor: monitor.id, anchor: Astal.WindowAnchor.LEFT | Astal.WindowAnchor.TOP | Astal.WindowAnchor.BOTTOM, exclusivity: Astal.Exclusivity.EXCLUSIVE, - // visible: false, + visible: sidebar.showOnStartup.get(), }); const panes = [<Dashboard />, <NotifPane />]; |