Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit naming of devices in keyboard_grouping #8576

Open
hugeblank opened this issue Feb 17, 2025 · 1 comment
Open

Explicit naming of devices in keyboard_grouping #8576

hugeblank opened this issue Feb 17, 2025 · 1 comment
Labels
enhancement New feature or incremental improvement

Comments

@hugeblank
Copy link

I have two "keyboard" devices. A set of 3 foot pedals treated as one keyboard, and a proper keyboard. I would like to use one of the pedals to act as my mod key, so that all I have to do is hold the pedal down and press a single button on my keyboard.

The "smart" default of seat <name> keyboard_grouping is not acting smart and treats them like individual devices despite every indication to me that their layouts are the same. This is incredibly inconvenient and makes what I want impossible.

My inputs, where you can see the layouts are the same for the foot pedals and logitech keyboard: https://pastebin.com/GRPRxtFA

I would like to be able to explicitly declare the two devices as a single group like so:

seat <name> keyboard_grouping <keyboardAIdentifier>,<keyboardBIdentifier>,[...]
where the identifier is what is provided by swaymsg -t get_inputs.

for example:
seat seat0 keyboard_grouping 1133:50501:Logitech_USB_Receiver_Keyboard,13651:45057:PCsensor_FootSwitch_Keyboard

@hugeblank hugeblank added the enhancement New feature or incremental improvement label Feb 17, 2025
@hugeblank
Copy link
Author

So I got what I wanted to do to work. The big issue was that any difference in xkb configuration immediately throws the device out of the grouping, and I was using xkb to remap the keys. Instead of using xkb I used udev's hwdb rules to do the remap, following this article (archive). I still think this feature request is valid though, since it really shouldn't take going to udev to have the devices play nice in a single grouping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or incremental improvement
Development

No branches or pull requests

1 participant