feat: ags

This commit is contained in:
Sweetbread committed 2025-01-10 22:15:02 +03:00
1 parent 21fe030dc7
commit 8ea1207bb9
21 files changed
+357 -1214

No files matched your search

@@ -0,0 +1,15 @@
import { bind } from "astal"
import Wp from "gi://AstalWp"
export default function Audio() {
const speaker = Wp.get_default()?.audio.defaultSpeaker!
return <box className="AudioSlider" css="min-width: 140px">
<icon icon={bind(speaker, "volumeIcon")} />
<slider
hexpand
onDragged={({ value }) => speaker.volume = value}
value={bind(speaker, "volume")}
/>
</box>
}