[Novalug] F13-F24 keys?

Ed James edward.james at gmail.com
Wed Feb 17 15:52:59 EST 2010


Brandon,

   I don't have the answer, but I'm poking around for it.  In the
meantime, I have an
FYI - use "xmodmap -pk" to see what your current keymap table is.  My table only
goes up to F12.  I found a file "/usr/include/X11/keysymdef.h" which
looks like a
clue towards getting additional PFKs to work.  However, that might just work for
keyboards that physically have extra PFKs.

   I'm playing with Xlib coding now, but can only generate XK_F1 to
XK-F12 signals
since that's all I have on my keyboard.  However, my XWindow server
does have know
the keycode for F13..., even though I can't generate them via a
keyboard yet (I am
able to generate it via and home-built XWindow app).

   "Shift-F1" generates 2 sequential keycodes which an XWindow app could "map"
to an F13 keysym, but that's a pain to do.  I dunno what the real way is yet.

Ed James

On Wed, Feb 17, 2010 at 11:35 AM, Brander Snaxe <brandon20va at yahoo.com> wrote:
> I have an Acer 1810T laptop and I tend to use it with multiple keyboards. Sometimes I use the laptop keyboard. Sometimes I use a Happy Hacking Lite keyboard. I also use another one from Deck.
>
> I am a VirtualBox user also and I always have to switch the 'Host' key each time I switch to a different setup because these keyboards do not have a common key that is convenient as 'Host'.
>
> My current keyboards have F1-F12 on the top row. I'd like to use F13 as a key by being able to type "Shift+F1" and use that as my 'Host' key. I know I could just use one of the F1-F12 keys as-is, but I'm curious how to enable the higher level FN keys. My gut says one day I'll randomly need them.
>
> I am having trouble getting this to work. How does one enable 'Shift+F1' to be 'F13'?
>
> Since I tend to use an Xserver all the time, using X tools may be the simplest and easiest way. Kernel keyboard mappings may not make sense for this.
>
> I am using ArchLinux. One thought I had was to use xbindkeys to call an xdotool command that would send F13. However, when I tested xdotool with:
>
> 'xdotool key F13'
>
> I get:
>
> No such key 'F13'. Ignoring it.
>
> It seems that the X server doesn't know what F13 means. Any ideas on where to go from here?
>
> TIA,
>  Brandon



More information about the Novalug mailing list