refactor: consistent click behavior for volume & mic bar widgets
- left click: open audio settings panel (unchanged) - right click: toggle mute - middle click: pwvucontrol
This commit is contained in:
parent
35283a6923
commit
dd757c2114
2 changed files with 7 additions and 13 deletions
|
|
@ -99,11 +99,8 @@ Item {
|
|||
onRightClicked: {
|
||||
AudioService.setInputMuted(!AudioService.inputMuted)
|
||||
}
|
||||
}
|
||||
|
||||
Process {
|
||||
id: pwvucontrolProcess
|
||||
command: ["pwvucontrol"]
|
||||
running: false
|
||||
onMiddleClicked: {
|
||||
Quickshell.execDetached(["pwvucontrol"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,13 +82,10 @@ Item {
|
|||
settingsPanel.open(screen)
|
||||
}
|
||||
onRightClicked: {
|
||||
pwvucontrolProcess.running = true
|
||||
AudioService.setMuted(!AudioService.muted)
|
||||
}
|
||||
onMiddleClicked: {
|
||||
Quickshell.execDetached(["pwvucontrol"]);
|
||||
}
|
||||
}
|
||||
|
||||
Process {
|
||||
id: pwvucontrolProcess
|
||||
command: ["pwvucontrol"]
|
||||
running: false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue