I must admit I'm a bit ashamed to ask such a noob question but...
On a keyboard, can you use any key as a modifier key? And any modifier key as a "regular" key?
For example, say I decide to buy a japanese HHKB Pro 2 or a japanese IBM Model M, can I configure all the keys left and right of the space bar (there are many on japanese keyboards ; ) to act as Meta, Super, Hyper on the good old Symbolics keyboard? (hey Webwit btw if you have too many Symbolics keyboards my birthday is in January ; )
I did play a bit on my Linux system 'just for fun' and, for example, I changed the 'end' key so that it acts as caps_lock (and hence triggers the led on and off too):
xmodmap -e 'keycode 103 = Caps_Lock'
xmodmap -e 'add lock = Caps_Lock'
And it works.
But I'm still confused.
Basically: are all the keys "just the same" and it's just conventions that make modifier keys modifier keys or is there more to it?
Using any key as Meta, Super, Hyper, etc.
-
- Main keyboard: IBM Model M
- Main mouse: Masamune Shirow
- Favorite switch: Buckling springs
- DT Pro Member: -
- Contact:
- Kurk
- Location: Sauce Hollondaise (=The Netherlands)
- Main keyboard: Kinesis Advantage // Filco MJ2 + HID liberation
- Main mouse: ITAC Mousetrak Professional
- DT Pro Member: 0027
I'm not a *nix user so I don't know about the software side. Concerning the keyboard hardware, there are two things I am aware of:
1) The pause/break key does only send a make code and no break code in most (if not all) scan code sets.
2) The modifier keys of non-NKRO boards have special matrix positions or their own matrices so they can be pressed simultaneously with two other keys. Take for instance a model M: it has only 2KRO but the combination CTRL-ALT-DEL is still registered.
1) The pause/break key does only send a make code and no break code in most (if not all) scan code sets.
2) The modifier keys of non-NKRO boards have special matrix positions or their own matrices so they can be pressed simultaneously with two other keys. Take for instance a model M: it has only 2KRO but the combination CTRL-ALT-DEL is still registered.
-
- Count Troller
- DT Pro Member: -
Except with USB connection, where it is a regular key.Kurrk wrote:1) The pause/break key does only send a make code and no break code in most (if not all) scan code sets.
Bar the exception above and the KRO limits Kurrk mentioned, yes.TacticalCoder wrote:On a keyboard, can you use any key as a modifier key? And any modifier key as a "regular" key?
I had similar thought once. What is important is that HHKB JP does not do some fancy mangling of combos.For example, say I decide to buy a japanese HHKB Pro 2 or a japanese IBM Model M, can I configure all the keys left and right of the space bar (there are many on japanese keyboards ; ) to act as Meta, Super, Hyper on the good old Symbolics keyboard?
If I were you, I'd seek somebody in possession of HHKB JP and ask him to do some tests.
Just a convention.Basically: are all the keys "just the same" and it's just conventions that make modifier keys modifier keys or is there more to it?
-
- Main keyboard: IBM Model M
- Main mouse: Masamune Shirow
- Favorite switch: Buckling springs
- DT Pro Member: -
- Contact:
Thanks all for the explanation...

Well I take it you're right: I should find someone who has a .jp version of the HHKB and knows Linux a bit and ask him if it could work.
That said damn Model Ms and their 2-KRO: but even in that case it could still be useful as long as I don't rely on crazy Hyper + Super + whatever-key combo
eh ehwoody wrote:I had similar thought once.

Well I take it you're right: I should find someone who has a .jp version of the HHKB and knows Linux a bit and ask him if it could work.
That said damn Model Ms and their 2-KRO: but even in that case it could still be useful as long as I don't rely on crazy Hyper + Super + whatever-key combo

-
- Main keyboard: noppoo choc mini brown MX
- Main mouse: N/A
- Favorite switch: red? Have not tried them all.
- DT Pro Member: -
>Djuzuh
With Xorg, Fn is programmable (though unnecessary most time). So much so you can Map your own layers, over layers, with your own method of inputing other values. If you know of the compose key, or as X calls it multi_key, you would know how near to infinite you can make your Layouts.
Ideally, I want to test On/Off States for Input Modification than Rolling State Changes (I leave rolling for input like in "asdf"), i.e. Caps Lock vs Shift+key, unlike dead keys. But as a question if I use the Super key, windows, yes I do on the only viable Window Manager the company I work for provided me that is Programmable and Dynamic, the awesome wm:
http://awesome.naquadah.org
http://en.wikipedia.org/wiki/Awesome_WM
http://www.youtube.com/watch?v=TgEIac3rcYI
But enough about me, What are you trying to do with your KB layout?
If you like to learn more about Xorg:
http://www.x.org/releases/current/doc/x ... onfig.html
https://wiki.archlinux.org/index.php/Xmodmap
https://wiki.archlinux.org/index.php/KEYMAP
And there's TOO much more that even I have not finished reading. All in all, in anything you can install Xorg, you can change layout of the keyboard.
PS
I am a fledgling as well.
With Xorg, Fn is programmable (though unnecessary most time). So much so you can Map your own layers, over layers, with your own method of inputing other values. If you know of the compose key, or as X calls it multi_key, you would know how near to infinite you can make your Layouts.
Ideally, I want to test On/Off States for Input Modification than Rolling State Changes (I leave rolling for input like in "asdf"), i.e. Caps Lock vs Shift+key, unlike dead keys. But as a question if I use the Super key, windows, yes I do on the only viable Window Manager the company I work for provided me that is Programmable and Dynamic, the awesome wm:
http://awesome.naquadah.org
http://en.wikipedia.org/wiki/Awesome_WM
http://www.youtube.com/watch?v=TgEIac3rcYI
But enough about me, What are you trying to do with your KB layout?
If you like to learn more about Xorg:
http://www.x.org/releases/current/doc/x ... onfig.html
https://wiki.archlinux.org/index.php/Xmodmap
https://wiki.archlinux.org/index.php/KEYMAP
And there's TOO much more that even I have not finished reading. All in all, in anything you can install Xorg, you can change layout of the keyboard.
PS
I am a fledgling as well.
-
- Location: France
- DT Pro Member: -
bebuxe wrote:>Djuzuh
With Xorg, Fn is programmable (though unnecessary most time). So much so you can Map your own layers, over layers, with your own method of inputing other values. If you know of the compose key, or as X calls it multi_key, you would know how near to infinite you can make your Layouts.
Ideally, I want to test On/Off States for Input Modification than Rolling State Changes (I leave rolling for input like in "asdf"), i.e. Caps Lock vs Shift+key, unlike dead keys. But as a question if I use the Super key, windows, yes I do on the only viable Window Manager the company I work for provided me that is Programmable and Dynamic, the awesome wm:
http://awesome.naquadah.org
http://en.wikipedia.org/wiki/Awesome_WM
http://www.youtube.com/watch?v=TgEIac3rcYI
But enough about me, What are you trying to do with your KB layout?
If you like to learn more about Xorg:
http://www.x.org/releases/current/doc/x ... onfig.html
https://wiki.archlinux.org/index.php/Xmodmap
https://wiki.archlinux.org/index.php/KEYMAP
And there's TOO much more that even I have not finished reading. All in all, in anything you can install Xorg, you can change layout of the keyboard.
PS
I am a fledgling as well.
I'm pretty sure that when you press FN, no keyboard code is sent to the PC.
So how do you want to modify it?
-
- Main keyboard: noppoo choc mini brown MX
- Main mouse: N/A
- Favorite switch: red? Have not tried them all.
- DT Pro Member: -
>Djuzuh
Here are some sample ones:
https://wiki.archlinux.org/index.php/Ex ... ys_in_Xorg
http://www.thinkwiki.org/wiki/How_to_ge ... ys_to_work
But you are correct. There is no actual hardware Fn that is programmable from Xorg, because the key is a firmware Switch Lock from the KB manufacturers that is not sent to OS. What is programmable is a key to be mapped as if it was the Fn or Switch Lock key in Xorg, for your Fav. Keys (volume up/down, Brightness, etc.)
Here are some sample ones:
https://wiki.archlinux.org/index.php/Ex ... ys_in_Xorg
http://www.thinkwiki.org/wiki/How_to_ge ... ys_to_work
But you are correct. There is no actual hardware Fn that is programmable from Xorg, because the key is a firmware Switch Lock from the KB manufacturers that is not sent to OS. What is programmable is a key to be mapped as if it was the Fn or Switch Lock key in Xorg, for your Fav. Keys (volume up/down, Brightness, etc.)
Last edited by bebuxe on 18 Jul 2012, 09:07, edited 1 time in total.
-
- Main keyboard: noppoo choc mini brown MX
- Main mouse: N/A
- Favorite switch: red? Have not tried them all.
- DT Pro Member: -
Then I apologize. You are correct. The only keys that can be assigned are those that xev can scan, or that the keyboard outputs to the OS, or in this case dbus or hald (or your own). *did not read it correctly*