update and refactor
This commit is contained in:
1 parent
2f416a1325
commit
f1c32ead5d
15 files changed
+164
-88
No files matched your search
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user