2024-12-27 15:42:51 +03:00
|
|
|
import { bind } from "astal"
|
|
|
|
import Wp from "gi://AstalWp"
|
|
|
|
|
|
|
|
export default function Audio() {
|
|
|
|
const speaker = Wp.get_default()?.audio.defaultSpeaker!
|
|
|
|
|
2024-12-28 22:14:11 +03:00
|
|
|
return <box className="AudioSlider">
|
2024-12-27 15:42:51 +03:00
|
|
|
<icon icon={bind(speaker, "volumeIcon")} />
|
2024-12-28 22:14:11 +03:00
|
|
|
<label label={bind(speaker, "volume").as(v => `${Math.floor(v*100)}%`)} />
|
2024-12-27 15:42:51 +03:00
|
|
|
</box>
|
|
|
|
}
|