update and refactor

This commit is contained in:
wt committed 2025-03-12 15:40:34 +07:00
1 parent 2f416a1325
commit f1c32ead5d
15 files changed
+164 -88

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import Wp from "gi://AstalWp";
import { bind } from "astal";
export default function Volume() {
const speaker = Wp.get_default()?.audio.defaultSpeaker!;
const microphone = Wp.get_default()?.audio.defaultMicrophone!;
return (
<button className="VolumeMenuButton" onClicked="pavucontrol">
<box className="VolumeBlock">
<icon className="VolumeIcon" icon={bind(speaker, "volumeIcon")} />
<icon className="VolumeIcon" icon={bind(microphone, "volumeIcon")} />
</box>
</button>
);
}