[AGS] Bar: BT, Audio, SysInfo, Brightness

This commit is contained in:
2025-04-23 20:04:48 +02:00
parent 69484fc302
commit e93e051094
26 changed files with 825 additions and 223 deletions

View File

@@ -1,14 +1,14 @@
import { App } from "astal/gtk4"
import style from "./style.scss"
import notifications from "./components/notifications/handler";
// import notifications from "./components/notifications/handler";
import Bar from "./components/bar/ui/Bar";
App.start({
instanceName: "runner",
css: style,
main() {
notifications.startNotificationHandler( App.get_monitors()[0] );
// notifications.startNotificationHandler( App.get_monitors()[0] );
// TODO: Monitor handling
Bar.Bar( App.get_monitors()[0] );
},
@@ -17,7 +17,8 @@ App.start({
// Notifications (TODO: Handle the arguments in the components themselves)
if ( args[ 0 ] === 'notifier' ) {
res( notifications.cliHandler( args ) );
res( 'Not available here yet, run astal -i notifier ' + args[ 1 ] );
// res( notifications.cliHandler( args ) );
} else if ( args[ 0 ] === 'bar' ) {
res( Bar.cliHandler( args ) );
}