ags(bar,scripts,i18n): added i18n system(wip), changed some bar stuff and started doing control center
This commit is contained in:
+13
-5
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user