add qs mic toggle
This commit is contained in:
parent
c37a1de490
commit
6c6900299d
3 changed files with 75 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue