keyboard indicator
Martin Flöser
mgraesslin at kde.org
Fri Jan 12 17:49:00 UTC 2018
Am 2018-01-12 17:06, schrieb Jonathan Riddell:
> Chatting with the Slimbook devs we noticed they wanted a programme
> called keyboard-indicator installed. Slimbook laptops don't have an
> LED on caps lock/num lock etc like some other laptops do so there's no
> visual indicator that you have caps lock turned on.
> keyboard-indicator is a simple systray icon which shows up when you
> have caps lock etc turned on. However it's a gtk app
>
> Do we have anything similar in Plasma land or thoughts on how easy it
> would be to implement?
It is easy to implement as we have a decent API in KGuiAddons:
KModifierKeyInfo. That's for example used in the screenlocker to show
whether capslock is activated and IIRC there is even a datasource
wrapping it. So doing a plasmoid should be fairly simple.
Just as an FYI: KModifierKeyInfo doesn't work on Wayland yet, but KWin
has the information (in fact it is responsible for turning on the LEDs
on the keyboard [1]).
Cheers
Martin
[1] Which was rather difficult to implement as I also don't have any
keyboard (neither desktop nor notebook) with LEDs.
More information about the Plasma-devel
mailing list