30 lines
655 B
TypeScript
30 lines
655 B
TypeScript
import app from "ags/gtk3/app";
|
|
import { exec } from "ags/process";
|
|
import { monitorFile } from "ags/file";
|
|
import GLib from "gi://GLib";
|
|
import Left from "./widget/Left";
|
|
import Center from "./widget/Center";
|
|
import Right from "./widget/Right";
|
|
|
|
const HOME = GLib.getenv("HOME");
|
|
const css = `${HOME}/.config/astal/theme.css`;
|
|
const scss = `${HOME}/.config/astal/theme.sass`;
|
|
|
|
monitorFile(scss, () => {
|
|
exec(`sassc ${scss} ${css}`);
|
|
app.apply_css(css, true);
|
|
});
|
|
|
|
exec(`sassc ${scss} ${css}`);
|
|
|
|
app.start({
|
|
css,
|
|
main() {
|
|
app.get_monitors().map((monitor) => {
|
|
Left(monitor);
|
|
Center(monitor);
|
|
Right(monitor);
|
|
});
|
|
},
|
|
});
|