bar: add error for no wireplumber
This commit is contained in:
parent
31fef67815
commit
70a54153de
1 changed files with 1 additions and 1 deletions
|
|
@ -596,7 +596,7 @@ export default ({ monitor }: { monitor: Monitor }) => {
|
||||||
expand
|
expand
|
||||||
onScroll={(_, event) => {
|
onScroll={(_, event) => {
|
||||||
const speaker = AstalWp.get_default()?.audio.defaultSpeaker;
|
const speaker = AstalWp.get_default()?.audio.defaultSpeaker;
|
||||||
if (!speaker) return;
|
if (!speaker) return console.error("Unable to connect to WirePlumber.");
|
||||||
speaker.mute = false;
|
speaker.mute = false;
|
||||||
if (event.delta_y > 0) speaker.volume -= 0.1;
|
if (event.delta_y > 0) speaker.volume -= 0.1;
|
||||||
else speaker.volume += 0.1;
|
else speaker.volume += 0.1;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue