Biont / sway-launcher-desktop

TUI Application launcher with Desktop Entry support. Made for SwayWM, but runs anywhere
GNU General Public License v3.0
606 stars 28 forks source link

Execute when the Enter key (on the numpad) is pressed #43

Closed Samed-Hamma closed 3 years ago

Samed-Hamma commented 3 years ago

Hi @Biont, Thank you for this excellent launcher. I happen to have a full sized keyboard and sometimes I use the "Enter" key (the one found on the numeric pad) which doesn't work.

Originally I wanted to make a PR, but I couldn't find where I can do it in the script, I'm not very good with bash.

Thank you

Biont commented 3 years ago

Hm, this is working fine on the Cherry KB I just plugged in. Is there any difference in keycodes sent by various keyboards?

If you like to experiment a little, here are some pointers:

  1. Any keybinding would need to go into the parameters of the underlying fzf call. If any additional config is needed, it would likely go here
  2. Here's the fzf manpage on keybindings
  3. Maybe investigate what your keyboard is actually sending to the OS when you press the Enter key.
  4. Maybe I am just lucky and happen to use an xkb layout that's different from yours. (I am not very familiar with this area but I wouldn't be surprised if there are options to control the key behaviour there)