20 lines
490 B
TypeScript
20 lines
490 B
TypeScript
import app from "ags/gtk4/app";
|
|
import { Gdk } from "ags/gtk4";
|
|
import style from "./style.scss";
|
|
import Bar from "./Bar";
|
|
import NotificationPopups from "./notifications/NotificationPopups";
|
|
|
|
function register_windows(monitor: Gdk.Monitor) {
|
|
let scale = (monitor.get_geometry().width >= 3000) ? 1.2 : 1;
|
|
Bar(monitor, scale);
|
|
NotificationPopups();
|
|
}
|
|
|
|
app.start({
|
|
css: style,
|
|
iconTheme: "Papirus",
|
|
main() {
|
|
register_windows(app.get_monitors()[0]);
|
|
},
|
|
});
|