feat: ags

This commit is contained in:
2026-08-19 21:41:31 +03:00
committed by Sweetbread
parent d07853a8d1
commit 122ab982e6
21 changed files with 357 additions and 1214 deletions
@@ -0,0 +1,14 @@
import { bind } from "astal"
import Battery from "gi://AstalBattery"
export default function BatteryLevel() {
const bat = Battery.get_default()
return <box className="Battery"
visible={bind(bat, "isPresent")}>
<icon icon={bind(bat, "batteryIconName")} />
<label label={bind(bat, "percentage").as(p =>
`${Math.floor(p * 100)} %`
)} />
</box>
}