PaperWM icon indicating copy to clipboard operation
PaperWM copied to clipboard

Show mnemonics in the topbar when pressing Super

Open hedning opened this issue 8 years ago • 2 comments

When pressing Super we should show hints in at least the topbar (sems like that's what the gnome people are calling it). So eg. an M beside the calendar popdown.

hedning avatar Sep 20 '17 08:09 hedning

Note: To bind modifier-only keybindings simply use the keysym as if it was a regular key. (eg. Super_L not <Super>)

olejorgenb avatar Sep 24 '17 22:09 olejorgenb

It's possible to use Gdk.Keymap to detect both keydown and keyup for modifers.

    const keymap = Gdk.Keymap.get_default();
    keymap.connect('state_changed', () => {
      keymap.get_modifier_state() & Gdk.ModifierType.CONTROL_MASK
    });

Ref: https://github.com/sneetsher/keyboard_modifiers_status

Edit: WIP branch for general modifer tracking: https://github.com/paperwm/PaperWM/tree/modifier-tracker

olejorgenb avatar Jun 24 '18 08:06 olejorgenb