----8<----8<----8<----8<---- xi2watch.c ---->8---->8---->8---->8----
Nicolas George (12020-02-19):
----8<----8<----8<----8<---- xi2watch.c ---->8---->8---->8---->8----
Hi.
I am replying to my own mail of three years ago where I explained how to configure X11 to set different layouts on different keyboards and handle hot-plugging without root privileges. Since a standard tool did not
exist yet, I had attached a small program of mine to do it.
Wow. It's exactly what I need since I've started to use a USB switch in
my home office. Assuming it works for me of course. I've thought about writing a udev rule but haven't gotten around to it.
I've tried to run xmodmap after the keyboard is hot plugged (via telling
the USB switch to switch) but it's like the xmodmap doesn't take even
after I added a delay. Although it seems it worked sometimes. Maybe the
issue is I've tried to run xmodmap from the other computer over ssh, I
don't know.
Does the xmodmap effect stay if you run it manually after the keyboard
is hot-plugged?
Nicolas George (12020-02-19):
----8<----8<----8<----8<---- xi2watch.c ---->8---->8---->8---->8----
Hi.
I am replying to my own mail of three years ago where I explained how to configure X11 to set different layouts on different keyboards and handle hot-plugging without root privileges. Since a standard tool did not
exist yet, I had attached a small program of mine to do it.
I have seen this code reproduced on the web, so at least somebody is
using it. Good.
Then it might interest you that I have made an extended version of it
and published it:
https://gitlab.com/Cigaes/xi2bind
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 32:40:13 |
Calls: | 6,669 |
Calls today: | 1 |
Files: | 12,216 |
Messages: | 5,338,224 |