From owner-freebsd-doc Sun Feb 20 12:50:10 2000 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 977F137BFBB for ; Sun, 20 Feb 2000 12:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA36982; Sun, 20 Feb 2000 12:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from monsoon.mail.pipex.net (monsoon.mail.pipex.net [158.43.128.69]) by hub.freebsd.org (Postfix) with SMTP id 92C3237BF5D for ; Sun, 20 Feb 2000 12:49:59 -0800 (PST) (envelope-from mark@dogma.freebsd-uk.eu.org) Received: (qmail 25297 invoked from network); 20 Feb 2000 20:49:57 -0000 Received: from userab55.uk.uudial.com (HELO marder-1.) (62.188.130.154) by smtp.dial.pipex.com with SMTP; 20 Feb 2000 20:49:57 -0000 Received: (from root@localhost) by marder-1. (8.9.3/8.9.3) id UAA05248; Sun, 20 Feb 2000 20:49:55 GMT (envelope-from mark) Message-Id: <200002202049.UAA05248@marder-1.> Date: Sun, 20 Feb 2000 20:49:55 GMT From: Mark Ovens Reply-To: Mark Ovens To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: docs/16841: New FAQ entry describing use of "Windows(tm)" keys Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 ---- Now all you need is a splash screen. For that you can surf on over to the gallery at http://www.cslab.vt.edu/~jobaldwi/splash/. + + + + Can I use the Windows(tm) keys on my keyboard in X? + + + Yes. All you need to do is use &man.xmodmap.1; to define what + function you wish them to perform. + + Assuming all "Windows(tm)" keyboards are standard then + the keycodes for the 3 keys are + + + + 115 - Windows(tm) key, between the left-hand Ctrl and + Alt keys + + + 116 - Windows(tm) key, to the right of the Alt-Gr key + + + 117 - Menu key, to the left of the right-hand Ctrl key + + + + The command + &prompt.root; xmodmap -e "keycode 115 = comma" + will make the left Windows(tm) key print a comma + (you will probably have to re-start X to see the result) + + To have the Windows(tm) key-mappings enabled automatically + everytime you start X either put the xmodmap commands + in your ~/.xinitrc file or, preferably, create a + file ~/.xmodmaprc and just include the + xmodmap options, one per line. + + 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. + + To do this put the following in ~/.xmodmaprc + + + keycode 115 = F13 + keycode 116 = F14 + keycode 117 = F15 + + I use fvwm2 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). + + The entries in my ~/.fvwmrc which map the + keys this way are: + + Key F13 FTIWS A Iconify + Key F14 FTIWS A RaiseLower + Key F15 A A Menu Workplace Nop + + + >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message