Bug 503440 - UI to set keyboard shortcut for standalone widgets that have their "configure" actions overridden to open System Settings KCMs
Summary: UI to set keyboard shortcut for standalone widgets that have their "configure...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.3.4
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2025-04-27 19:30 UTC by Yevhen Popok
Modified: 2025-04-28 16:05 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yevhen Popok 2025-04-27 19:30:49 UTC
SUMMARY
Some people prefer to have the "Notifications" widget separate from the System Tray.
It's possible to disable respective "System Tray" and add widget. However, currently only System Tray exposes UI option to set keyboard shortcut that can activate/open "Notifications" panel. Thanks to the tip of  Christoph Wolk (cwo) at KDE forum [1], I've figured that it's possible to set shortcut  for the "Notifications" widget in the config file:
1. Add "Notifications" widget to the panel
2. Open ~/.config/plasma-org.kde.plasma.desktop-appletsrc
3. Find appropriate section that mentions widget. For example:
[Containments][2][Applets][48]
plugin=org.kde.plasma.notifications
4. Add new section and set keyboard shortcut there. For example
[Containments][2][Applets][48][Shortcuts]
global=Meta+Alt+C
5. Reload plasmashell using KRunner or Konsole
kquitapp5 plasmashell && plasmashell &
6. Now you can find previously set shortcut on the
System Settings > Shortcuts > Activate Notification Widget
(it wasn't there before)

STEPS TO REPRODUCE
1. Add "Notifications" widget to the panel
2. Right click on it and select "Configure Event Notifications and Actions" action
3. "Notification" section of System Settings opens

OBSERVED RESULT
For obvious reason KCM doesn't provide an option to set keyboard shortcut to activate widget 

EXPECTED RESULT
Keyboard shortcut to activate widget is possible to add from the UI

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 42
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION
I dug a little bit in commits and found that required option was removed in Plasma 5.22 in favour of action to open KCM directly [2] just like previously was done with some other applets (Bluetooth, Network connections). I also have no reason to move many applets from the System Tray, but sometimes I need to glance at some that dynamically change (like Keyboard Layout and Notifications) and for me it's easier to keep them separate in the panel and activate with keyboard shortcuts.

[1] https://discuss.kde.org/t/this-week-in-plasma-multiple-major-wayland-and-ui-features-kde-blogs/33316/17
[2] https://invent.kde.org/plasma/plasma-workspace/-/commit/4172720357684b952ded4b8420374e301589ad1f
Comment 1 cwo 2025-04-28 07:12:12 UTC
I would be in favor of this; it's currently not possible to set a shortcut for standalone applets with the configure internal action disabled, and it's impossible to see the About page for them as well as their tray versions.

But this would increase the context menu complexity of tray icons a bit, and we'd have to consider how it interacts with the tray header - would we want this as an extra button? Seems unnecessary for such a minor feature, but we also try to not have functionality exclusively in context menus.