config: show sidebar on startup
Cannot be hot reloaded (for obv reasons)
This commit is contained in:
parent
4ae1651720
commit
9963f16976
4 changed files with 8 additions and 1 deletions
|
|
@ -96,6 +96,9 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
sidebar: {
|
||||||
|
showOnStartup: true,
|
||||||
|
},
|
||||||
sideleft: {
|
sideleft: {
|
||||||
directories: {
|
directories: {
|
||||||
left: {
|
left: {
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ export const {
|
||||||
launcher,
|
launcher,
|
||||||
notifpopups,
|
notifpopups,
|
||||||
osds,
|
osds,
|
||||||
|
sidebar,
|
||||||
sideleft,
|
sideleft,
|
||||||
math,
|
math,
|
||||||
updates,
|
updates,
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,8 @@ export default {
|
||||||
"osds.lock.spacing": NUM,
|
"osds.lock.spacing": NUM,
|
||||||
"osds.lock.caps.hideDelay": NUM,
|
"osds.lock.caps.hideDelay": NUM,
|
||||||
"osds.lock.num.hideDelay": NUM,
|
"osds.lock.num.hideDelay": NUM,
|
||||||
|
// Sidebar
|
||||||
|
"sidebar.showOnStartup": BOOL,
|
||||||
// Sideleft
|
// Sideleft
|
||||||
"sideleft.directories.left.top": STR,
|
"sideleft.directories.left.top": STR,
|
||||||
"sideleft.directories.left.middle": STR,
|
"sideleft.directories.left.middle": STR,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import type { Monitor } from "@/services/monitors";
|
import type { Monitor } from "@/services/monitors";
|
||||||
import { bind, register, Variable } from "astal";
|
import { bind, register, Variable } from "astal";
|
||||||
import { App, Astal, Gdk, Gtk, Widget } from "astal/gtk3";
|
import { App, Astal, Gdk, Gtk, Widget } from "astal/gtk3";
|
||||||
|
import { sidebar } from "config";
|
||||||
import Dashboard from "./dashboard";
|
import Dashboard from "./dashboard";
|
||||||
import NotifPane from "./notifpane";
|
import NotifPane from "./notifpane";
|
||||||
|
|
||||||
|
|
@ -16,7 +17,7 @@ export default class SideBar extends Widget.Window {
|
||||||
monitor: monitor.id,
|
monitor: monitor.id,
|
||||||
anchor: Astal.WindowAnchor.LEFT | Astal.WindowAnchor.TOP | Astal.WindowAnchor.BOTTOM,
|
anchor: Astal.WindowAnchor.LEFT | Astal.WindowAnchor.TOP | Astal.WindowAnchor.BOTTOM,
|
||||||
exclusivity: Astal.Exclusivity.EXCLUSIVE,
|
exclusivity: Astal.Exclusivity.EXCLUSIVE,
|
||||||
// visible: false,
|
visible: sidebar.showOnStartup.get(),
|
||||||
});
|
});
|
||||||
|
|
||||||
const panes = [<Dashboard />, <NotifPane />];
|
const panes = [<Dashboard />, <NotifPane />];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue