You are not logged in.
I have two keyboards, one of which does not support pressing caps lock at the same time as any other key.
For the superior keyboard I want to swap ctrl and caps lock, and for the inferior I do not want to swap and ctrl
and caps lock, but maybe some other keys.
Is there anyway to set up the keyboard layouts independently for the keyboards? I want to do this both in X and in TTY.
Offline
setxkbmap -help states that you can specifies the device ID to use.
I have not tested yet, put I assume that should work.
If it works it only solved the X part, not the TTY part.
Last edited by Hibernate (2012-09-13 21:28:25)
Offline
The console keyboard layout is called a keymap. I think you can make your own keymap and have some kind of script or daemon that listens for events (keyboard vendor "X" plugging in), and then, depending on the model, runs:
# loadkeys sv-latin1-kb1
# loadkeys sv-latin1-kb2I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
or simply create a script that changes you layout and assign a keybinding to it
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Yeah, but from what I understand, he wants to swap Ctrl with Caps Lock for just one keyboard. He can only do that with a custom keymap (from the bottom of that wiki article, here: https://wiki.archlinux.org/index.php/KE … le_Keymap).
You'd only need one custom keymap, and revert to the regular one for the other keyboard. Name it something like:
# loadkeys sv-latin1-swapped
# loadkeys sv-latin1There was a script somewhere on these forums about listening in for hot-plugging events and running a command. Search, google, etc.
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline