feat: initial commit

This commit is contained in:
tux
2025-05-31 14:00:56 +05:30
commit ec117cea00
19 changed files with 603 additions and 0 deletions

15
widget/bar/battery.tsx Normal file
View File

@@ -0,0 +1,15 @@
import { bind } from "astal";
import AstalBattery from "gi://AstalBattery";
export const Battery = () => {
const battery = AstalBattery.get_default();
return (
<box visible={bind(battery, "isPresent")}>
<image iconName={bind(battery, "batteryIconName")} />
<label
label={bind(battery, "percentage").as((p) => `${Math.floor(p * 100)}%`)}
/>
</box>
);
};