Bug 469976 - Global action/keyboard shortcut for existing functionality of toggling audio mute of the currently active window/application
Summary: Global action/keyboard shortcut for existing functionality of toggling audio ...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 5.27.4
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-19 08:46 UTC by Joe Breuer
Modified: 2023-05-19 20:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Breuer 2023-05-19 08:46:54 UTC
Since recently, there's this very nice feature of the little speaker icons shown on the window selectors in the task manager, which toggles audio mute of that specific application.

As far as I could determine, there's currently no way to activate this functionality using a keyboard shortcut.

I've been in a number of situations where I was wishing for that exact keyboard shortcut, such as:

- (quickly) muting an audio player on an incoming video conference / soft phone call

- muting a full screen game when a "hard" phone call comes in, but leaving audio notifications from other applications intact during the call

- Wanting to quickly silence audio prompts by one certain set of applications, while enabling others

... etc.

All necessary information (active task, how to do the per-application mute toggle) is obviously already available to the Task Manager - the active application is shown highlighted, and the mute button there knows what to do.


I'm tempted to have a look to roll a patch / enhancement myself, in that regard a question to the people who might know:

Is the Task Manager an integral part of kwin, or is it a separate/different component (which/where)?

... since kwin already registers a number of keyboard shortcuts, extending this by the one more feels feasible to me even without knowing KDE code in depth. However, adding keyboard shortcut functionality to a component that doesn't have any at all so far, not so much. ;-)
Comment 1 Joe Breuer 2023-05-19 12:25:57 UTC
Thinking about it some more, I'd like to suggest a kind of special case on top:

When the mouse pointer is hovering over a Task Manager tile, highlighting that application/window to be activated on click, that keyboard shortcut should operate on the thusly highlighted application.

In all other cases - pointer not highlighting something in the 'task bar' - mute state of the application associated with the currently active/focused window should toggle (the one that's shown highlighted on the 'task bar' regardless of any mouse-over things).
Comment 2 Joe Breuer 2023-05-19 12:27:06 UTC
... ah, and I think Alt+Mute would be a good/useful key combination for this; but maybe that only happens to be convenient on the keyboard I have in front of me. ...
Comment 3 Nate Graham 2023-05-19 20:19:11 UTC
Makes sense.