import Wp from "gi://AstalWp" import Hyprland from "gi://AstalHyprland"; import { bind } from "astal" import { Astal, Gtk, Gdk } from "astal/gtk3"; import { popup } from "./popup" const { TOP, LEFT } = Astal.WindowAnchor const audio = Wp.get_default()?.audio; const hyprland = Hyprland.get_default() function speakerIcon(icon: string): string { switch (icon) { case "audio-headset-bluetooth": return "audio-headset" case "audio-card-analog-pci": return "audio-speakers" default: return "speakers" } } function speakerVolume(speaker: Wp.Endpoint) { return { return s })} onDragged={(self) => { speaker.volume = self.value }} /> } function VolWindow() { return {bind(audio, "speakers").as(speakers => speakers.map(s => speakerVolume(s)))} } export default function volume() { return }