WayfireWM/wcm

detect keybinding when key is pressed.

Opened this issue · 5 comments

detect keybinding when key is pressed.

When I want to set new keybinding i don't know what its called. For ex. I want to set take screenshot when print is pressed but how is the key defined in wayfire? Is it < Print > or something else?

@librewish The key names are defined in the <linux/input-event-codes.h> header, you can find a list of all keys there.

I do agree this is a meaningful addition though, we should be able to implement this.

also in wcm
in binding section add drop down for
keyboard binding
touchscreen binding
touchpad binding(when its ready)

I have implemented key and button binding grabs dependent on wayfire #328 however I do not have the hardware for touchscreen and touchpad so I cannot implement support for these.

@soreau It is impossible to get touchscreen gestures because these are not part of the Wayland protocol at all. It would be best if you could just present the user with the option to "build" the gesture, it has 3 attributes:

  1. Type - "pinch", "swipe" or "edge-swipe"
  2. Finger count - 3 or more
  3. Direction - Can be left/right/up/down or a combination like left-up for swipes, and in/out for pinch