Added an osd for microphone inputs. (#60)
This commit is contained in:
@@ -19,9 +19,18 @@ export const OSDIcon = (ort: OSDOrientation) => {
|
||||
self.hook(brightness, () => {
|
||||
self.label = "";
|
||||
}, "notify::kbd")
|
||||
self.hook(audio, () => {
|
||||
self.hook(audio.microphone, () => {
|
||||
self.label = audio.microphone.is_muted ? "" : "";
|
||||
}, "notify::volume")
|
||||
self.hook(audio.microphone, () => {
|
||||
self.label = audio.microphone.is_muted ? "" : "";
|
||||
}, "notify::is-muted")
|
||||
self.hook(audio.speaker, () => {
|
||||
self.label = audio.speaker.is_muted ? "" : "";
|
||||
})
|
||||
}, "notify::volume")
|
||||
self.hook(audio.speaker, () => {
|
||||
self.label = audio.speaker.is_muted ? "" : "";
|
||||
}, "notify::is-muted")
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user