💥 ags: fix startup issues (and with that, errors with focusedClient bar widget)

This commit is contained in:
retrozinndev
2025-02-04 21:45:18 -03:00
parent 11f919ab1d
commit 80969071c4
21 changed files with 363 additions and 200 deletions
+16 -2
View File
@@ -1,8 +1,12 @@
import { App } from "astal/gtk3"
import { Bar } from "./window/Bar";
import { OSD } from "./window/OSD";
import { ControlCenter } from "./window/ControlCenter";
import { runStyleHandler } from "./scripts/style-handler";
//import { monitorPaths } from "./scripts/reload-handler"; // Only for debugging purposes(testing new widgets and stuff)
import { handleArguments } from "./scripts/arg-handler";
import { monitorPaths } from "./scripts/reload-handler";
export const astalInstanceName = "astal"
@@ -17,6 +21,16 @@ App.start({
console.log(`[LOG] Running Stylesheet handler`);
runStyleHandler();
//console.log(`[LOG] Starting to monitor scripts to automatically reload instance`);
//monitorPaths();
//monitorPaths(); // Only for debugging purposes(testing new widgets and stuff)
}
});
// Windows list
export function getWindowsMap(): Object {
return {
"bar": Bar,
"osd": OSD,
"control-center": ControlCenter,
//"floating-notifications": FloatingNotifications
};
}