goloshubov / fnlock-switch-tp-comp-usb-kb

Gnome Shell Extension - FnLk switch for Lenovo ThinkPad Compact USB Keyboard
GNU General Public License v3.0
2 stars 2 forks source link

Support keyboard shortcuts to toggle the state #5

Open crystalcommunication opened 3 days ago

crystalcommunication commented 3 days ago

It would be nice if there was a way to add a keyboard shortcut to toggle the FnLk state. I have successfully used various other methods to bind the underlying script to a keyboard shortcut, but that doesn't cause the indicator in the panel to be updated.

It would be really great if we could make the extension handle the KEY_FN_ESC event. This is tricky, because the event appears to be emitted from the TrackPoint's event handle in /dev/input instead of the keyboard for some reason, but it should be possible to compensate for that.

goloshubov commented 3 days ago

Thanks for proposal. I was thinking to add keyboard shortcut support in some way, but unfortunately do not have time for this task now. I'll cycle back on this a bit later.