ags(bar,scripts,i18n): added i18n system(wip), changed some bar stuff and started doing control center

This commit is contained in:
retrozinndev
2025-02-04 12:39:25 -03:00
parent 09692bae90
commit b544f4a45b
32 changed files with 980 additions and 141 deletions
+13 -5
View File
@@ -1,14 +1,22 @@
import { App } from "astal/gtk3"
import { Bar } from "./window/Bar";
import { runStyleHandler } from "./scripts/style-handler";
import "./scripts/reload-handler";
//import { monitorPaths } from "./scripts/reload-handler"; // Only for debugging purposes(testing new widgets and stuff)
import { handleArguments } from "./scripts/arg-handler";
runStyleHandler();
export const astalInstanceName = "astal"
App.start({
instanceName: "astal",
instanceName: astalInstanceName || "astal",
requestHandler(request: string, res: (result: any) => void) {
console.log(`[LOG] Arguments received: ${request}`)
res(handleArguments(request));
},
main() {
Bar(0);
console.log(`[LOG] Initialized astal instance as: ${ astalInstanceName || "astal" }`);
console.log(`[LOG] Running Stylesheet handler`);
runStyleHandler();
//console.log(`[LOG] Starting to monitor scripts to automatically reload instance`);
//monitorPaths();
}
});