Add screenshots

This commit is contained in:
2025-05-27 12:59:23 -07:00
parent ffc8737756
commit 1820340fcd
21 changed files with 114 additions and 50 deletions

20
app.ts
View File

@@ -2,13 +2,27 @@ import { App } from "astal/gtk3"
import style from "./style.scss"
import Bar from "./widget/Bar"
import Hyprland from "gi://AstalHyprland"
import launcher from "./widget/launcher"
const hyprland = Hyprland.get_default()
App.start({
css: style,
icons: "/home/protoshark/.config/ags/assets/",
main() {
hyprland.monitors.map((monitor) => Bar(monitor))
icons: "/home/spingus/.config/ags/assets/",
requestHandler: (request: string, res: (response: any) => void) => {
if (request === "launch") {
if (launcher()) {
res("Opening launcher")
} else {
res("Closing launcher")
}
return
}
res("Unknown command")
},
main: () => {
hyprland.monitors.map((mon) => {
Bar(mon)
})
},
})