[AGS] GTK4 Migration: Partially complete
This commit is contained in:
		| @@ -1,16 +1,16 @@ | ||||
| import { App } from "astal/gtk3" | ||||
| import { App } from "astal/gtk4" | ||||
| import style from "./style.scss" | ||||
|  | ||||
| import notifications from "./components/notifications/handler"; | ||||
| import Bar from "./components/bar/ui/Bar"; | ||||
| // import Bar from "./components/bar/ui/Bar"; | ||||
|  | ||||
| App.start({ | ||||
|     instanceName: "runner", | ||||
|     css: style, | ||||
|     main() { | ||||
|         notifications.startNotificationHandler( 0, App.get_monitors()[0] ); | ||||
|         notifications.startNotificationHandler( App.get_monitors()[0] ); | ||||
|         // TODO: Monitor handling | ||||
|         Bar.Bar( App.get_monitors()[0] ); | ||||
|         // Bar.Bar( App.get_monitors()[0] ); | ||||
|     }, | ||||
|     requestHandler(request, res) { | ||||
|         const args = request.trimStart().split( ' ' ); | ||||
| @@ -19,7 +19,7 @@ App.start({ | ||||
|         if ( args[ 0 ] === 'notifier' ) { | ||||
|             res( notifications.cliHandler( args ) ); | ||||
|         } else if ( args[ 0 ] === 'bar' ) { | ||||
|             res( Bar.cliHandler( args ) ); | ||||
|             // res( Bar.cliHandler( args ) ); | ||||
|         } | ||||
|     }, | ||||
| }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user