rvaiya / warpd

A modal keyboard-driven virtual pointer
MIT License
2.9k stars 131 forks source link

Numeric keys do not work as buttons #300

Closed paulvictor closed 3 weeks ago

paulvictor commented 3 weeks ago

Firstly want to thank you for such a wonderful tool. Have been using keyd for a long time to emulate my 34 key ferris sweep setup on my laptop and have to say it works absolutely amazing. I have just started to use warpd to optimize my workflow further and am having trouble with the button keys. Am just not able to get them to work with the value 1 2 3. Here is the entire setup

      buttons: unbind
      oneshot_buttons: unbind
      buttons: 1 2 3
      oneshot_buttons: exclam at numbersign

      grid_exit: esc
      hint_chars: neiohjkluyq
      hint2_chars: uyqneihjk
      screen_chars: hljk

      scroll_down: unbind
      scroll_down: J
      scroll_up: unbind
      scroll_up: K

      grid_cut_up: unbind
      grid_cut_down: unbind
      grid_cut_left: unbind
      grid_cut_right: unbind
      grid_up: unbind
      grid_down: unbind
      grid_left: unbind
      grid_right: unbind

      grid_cut_up: I
      grid_cut_down: E
      grid_cut_left: N
      grid_cut_right: O
      grid_up: i
      grid_down: e
      grid_left: n
      grid_right: o

      indicator: topright
      normal_system_cursor: 1

I am using it on sway running on nixos(not sure if that matters). Another thing to note is that the numbers are mapped with keyd on a different layer, again not sure if that matters since it doesn't work even with the normal numeric keys.

paulvictor commented 3 weeks ago

Came across this Finally, a numeric multiplier can be supplied to the directional keys as an input prefix in order to move the cursor by a proportional increment in the given direction (e.g 10j moves 10 units down). Closing the issue.