diced / dlauncher

An application launcher for Linux that is based on Ulauncher
GNU General Public License v3.0
81 stars 6 forks source link

Add more than one key to a keybind in dlauncher.toml #9

Open zerowhybr opened 2 years ago

zerowhybr commented 2 years ago

Currently, the app selected only gets launched by my "main" enter key (the big one on top of Right Shift) but not the right one on the numpad In my system, looking through xev, I get that my "main" enter key is keycode 36 (keysym 0xff0d, Return) and the numpad one is keycode 104 (keysym 0xff8d, KP_Enter) I am using the latest release of dlauncher-git through the AUR (aur/dlauncher-git 0.1.2-1 [+1 ~0.43])

If any more information is necessary feel free to ask.

diced commented 2 years ago

Currently theres no way of making both of them work at the same time, but you can change which one you would like to use by adding this section in the dlauncher.toml file located in ~/.config/dlauncher

[keybinds]
open = "KP_Enter"

More info on custom keybinds are here https://github.com/diced/dlauncher/blob/trunk/src/launcher/util/config.rs#L131

zerowhybr commented 2 years ago

Ok, I will change the title so it represents a new feature request more broadly. Thank you for your reply!