Skip to content

Keyboard is treated as a mouse #5455

Open
@Oreolek

Description

Hi. I have a programmable keyboard but I can't bind it in sway because it's treated as a mouse.

bindcode --input-device="5426:273:Razer_Razer_Nostromo" --whole-window 77 exec 'ydotool key "n+enter"'

Error: [...] Event code 77 (KEY_KP6) is not a button

bindsym --input-device="5426:273:Razer_Razer_Nostromo" --whole-window w exec 'ydotool key "n+enter"'

Error: [...] Unknown button w

I looked at the source code and apparently these messages don't mean sway doesn't know a button "w", it doesn't know a mouse can have one and treats my keyboard as a mouse.

The device in question has a scroll wheel so technically it combines a mouse and a keyboard. But having only a scroll wheel and no other buttons is not great.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions