Bug 510357

Summary: Notifications for Num Lock / Caps Lock status change do not work unless "Show notification when modifier or locking keys are used" checked
Product: [Plasma] kwin Reporter: Sanmay <sanmaycjoshi>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: materka, nate, nicolas.fella
Priority: NOR Keywords: accessibility, junior-jobs, usability
Version First Reported In: 6.4.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot

Description Sanmay 2025-10-07 18:36:42 UTC
SUMMARY
Notification for Num Lock / Caps Lock status change

STEPS TO REPRODUCE
1. Simply toggle Num Lock or Caps Lock.

OBSERVED RESULT
As of now, an applet appears in system tray when Caps Lock is active (also for Num Lock if settings are aptly modified).

EXPECTED RESULT
- A notification shows the status of Num Lock / Caps Lock (active/inactive).
- Bonus: Provide an option in 'Lock Key Status Settings' (right click on Caps Lock applet) to enable/disable the notification.

ADDITIONAL INFORMATION
1. There is an option to show system notifications for Caps or Num Lock in System Settings > Notifications > Application Settings > Accessibility > "A lock key has been activated". However, this failed to generate notification when lock keys were pressed.
2. Relevant: https://bugs.kde.org/show_bug.cgi?id=470075

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.16.9-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 Nate Graham 2025-10-07 19:46:31 UTC
Did you turn on the specific notifications you wanted using the "Configure Notifications" button on that page?
Comment 2 Sanmay 2025-10-07 19:50:53 UTC
Created attachment 185584 [details]
Screenshot

Yes, and hit apply. Adding a screenshot of the applied settings.
Comment 3 Nate Graham 2025-10-07 20:22:21 UTC
Huh, that's weird; those settings are working for me.
Comment 4 Nicolas Fella 2025-10-07 21:34:05 UTC
Did you enable the "Show notification when modifier or locking keys are used" checkbox in the Accessibility settings?
Comment 5 Sanmay 2025-10-08 05:23:49 UTC
(In reply to Nicolas Fella from comment #4)
> Did you enable the "Show notification when modifier or locking keys are
> used" checkbox in the Accessibility settings?

No I hadn't. Enabling it made the notifications appear. But I had to enable "Show notification when modifier or locking keys are used" checkbox in the Accessibility settings and System Settings > Notifications > Application Settings > Accessibility > "A lock key has been activated", both, to see the notifications for lock keys.

Thanks.

A few things that may be improved here in my opinion:
1. "Show notification when modifier or locking keys are used" checkbox in the Accessibility settings may be turned on by default. Because, it either way doesn't immediately turn on notifications unless System Settings > Notifications > Application Settings > Accessibility > "A lock key has been activated" is set.
2.  An option in 'Lock Key Status Settings' (right click on Caps Lock applet) to enable/disable the notification may not be feasible. A link to System Settings > Notifications > Application Settings > Accessibility > "A lock key has been activated" can be there in Lock Key Status Settings.
Comment 6 Nate Graham 2025-10-08 20:05:44 UTC
Yeah, it's not ideal to have a setting that allows other settings to work.

I might suggest that the checkbox in Accessibility could be transformed into a button that turns on and off all the notifications, but doesn't attempt to show the state of whether any of the individual notifications are turned on or off.

That way, from the Acecssibility KCM, you can turn everything on or off. But you can also turn individual ones on or off as you please from the Notifications KCM, without having to look in the Accessibility KCM for anything.