Date: Sun, 20 Feb 2000 20:49:55 GMT From: Mark Ovens <mark@ukug.uk.freebsd.org> To: FreeBSD-gnats-submit@freebsd.org Subject: docs/16841: New FAQ entry describing use of "Windows(tm)" keys Message-ID: <200002202049.UAA05248@marder-1.>
next in thread | raw e-mail | index | archive | help
>Number: 16841 >Category: docs >Synopsis: New FAQ entry describing use of "Windows(tm)" keys >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 20 12:50:02 PST 2000 >Closed-Date: >Last-Modified: >Originator: Mark Ovens >Release: FreeBSD 3.4-STABLE i386 >Organization: >Environment: >Description: Add FAQ entry describing how to use the Windows(tm) keys >How-To-Repeat: >Fix: *** book.sgml.orig Sun Feb 20 19:39:04 2000 --- book.sgml Sun Feb 20 20:37:21 2000 *************** *** 5517,5523 **** --- 5517,5586 ---- <para>Now all you need is a splash screen. For that you can surf on over to the gallery at <ulink URL="http://www.cslab.vt.edu/~jobaldwi/splash/">http://www.cslab.vt.edu/~jobaldwi/splash/</ulink>.</para> + </answer></qandaentry> + + <qandaentry><question> + <para>Can I use the Windows(tm) keys on my keyboard in X?</para></question> + + <answer> + <para>Yes. All you need to do is use &man.xmodmap.1; to define what + function you wish them to perform.</para> + + <para>Assuming all "Windows(tm)" keyboards are standard then + the keycodes for the 3 keys are</para> + + <itemizedlist> + <listitem> + <para>115 - Windows(tm) key, between the left-hand Ctrl and + Alt keys</para> + </listitem> + <listitem> + <para>116 - Windows(tm) key, to the right of the Alt-Gr key</para> + </listitem> + <listitem> + <para>117 - Menu key, to the left of the right-hand Ctrl key</para> + </listitem> + </itemizedlist> + + <para>The command + <screen>&prompt.root; <userinput>xmodmap -e "keycode 115 = comma" + </userinput></screen>will make the left Windows(tm) key print a comma + (you will probably have to re-start X to see the result)</para> + + <para>To have the Windows(tm) key-mappings enabled automatically + everytime you start X either put the <command>xmodmap</command> commands + in your <filename>~/.xinitrc</filename> file or, preferably, create a + file <filename>~/.xmodmaprc</filename> and just include the + <command>xmodmap</command> options, one per line.</para> + + <para>For example, I have mapped the 3 keys to be F13, F14, and F15 + respectively. This makes it easy to map them to useful functions within + applications or your window manager.</para> + + <para>To do this put the following in <filename>~/.xmodmaprc</filename> + </para> + + <programlisting>keycode 115 = F13 + keycode 116 = F14 + keycode 117 = F15</programlisting> + + <para>I use <command>fvwm2</command> and have mapped the keys so that + F13 iconifies (or de-iconifies) the window the cursor is in, F14 brings + the window the cursor is in to the front or, if it is already at the + front, pushes it to the back, and F15 pops up the main Workplace + (application) menu even if the cursor is not on the desktop, which is + useful if you don't have any part of the desktop visible (and the logo + on the key matches its functionality).</para> + + <para>The entries in my <filename>~/.fvwmrc</filename> which map the + keys this way are:</para> + + <programlisting>Key F13 FTIWS A Iconify + Key F14 FTIWS A RaiseLower + Key F15 A A Menu Workplace Nop</programlisting> + </answer></qandaentry></qandaset> + </chapter> <chapter *** man-refs.ent.orig Sun Feb 20 20:13:03 2000 --- man-refs.ent Sun Feb 20 20:14:16 2000 *************** *** 84,89 **** --- 84,90 ---- <!ENTITY man.vi.1 "<citerefentry/<refentrytitle/vi/<manvolnum/1//"> <!ENTITY man.vidcontrol.1 "<citerefentry/<refentrytitle/vidcontrol/<manvolnum/1//"> <!ENTITY man.xfontsel.1 "<citerefentry/<refentrytitle/xfontsel/<manvolnum/1//"> + <!ENTITY man.xmodmap.1 "<citerefentry/<refentrytitle/xmodmap/<manvolnum/1//"> <!ENTITY man.xset.1 "<citerefentry/<refentrytitle/xset/<manvolnum/1//"> <!ENTITY man.zcat.1 "<citerefentry/<refentrytitle/zcat/<manvolnum/1//"> >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002202049.UAA05248>