add qs mic toggle

This commit is contained in:
outfoxxed 2025-11-18 01:02:30 -08:00
parent c37a1de490
commit 6c6900299d
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 75 additions and 0 deletions

View file

@ -1,6 +1,7 @@
import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Io
import Quickshell.Services.Pipewire
import qs.bar
@ -40,4 +41,13 @@ BarWidgetInner {
}
}
}
IpcHandler {
target: "audio"
function toggleMic(): void {
const source = Pipewire.defaultAudioSource;
source.audio.muted = !source.audio.muted;
}
}
}