From 417532d05378a6314d0710387e4ea087537e78ab Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 7 Mar 2000 13:47:55 +0000 Subject: [PATCH] Describe how to use Windows(tm) keys for something useful in X. PR: docs/16841 Submitted by: Mark Ovens --- en_US.ISO8859-1/books/faq/book.sgml | 79 +++++++++++++++++++++++++++- en_US.ISO_8859-1/books/faq/book.sgml | 79 +++++++++++++++++++++++++++- 2 files changed, 154 insertions(+), 4 deletions(-) diff --git a/en_US.ISO8859-1/books/faq/book.sgml b/en_US.ISO8859-1/books/faq/book.sgml index 9b9097c7d7..996eca48a5 100644 --- a/en_US.ISO8859-1/books/faq/book.sgml +++ b/en_US.ISO8859-1/books/faq/book.sgml @@ -13,7 +13,7 @@ - $FreeBSD: doc/en_US.ISO_8859-1/books/faq/book.sgml,v 1.42 2000/02/18 02:27:29 jim Exp $ + $FreeBSD: doc/en_US.ISO_8859-1/books/faq/book.sgml,v 1.43 2000/02/24 18:28:20 jhb Exp $ This is the FAQ for FreeBSD versions 2.X and 3.X. All entries @@ -5517,7 +5517,82 @@ create a /boot/loader.conf that contains: 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 + + + + To have the left Windows(tm) key print a comma, try + this. + + &prompt.root; xmodmap -e "keycode 115 = 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 + + + + + - $FreeBSD: doc/en_US.ISO_8859-1/books/faq/book.sgml,v 1.42 2000/02/18 02:27:29 jim Exp $ + $FreeBSD: doc/en_US.ISO_8859-1/books/faq/book.sgml,v 1.43 2000/02/24 18:28:20 jhb Exp $ This is the FAQ for FreeBSD versions 2.X and 3.X. All entries @@ -5517,7 +5517,82 @@ create a /boot/loader.conf that contains: 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 + + + + To have the left Windows(tm) key print a comma, try + this. + + &prompt.root; xmodmap -e "keycode 115 = 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 + + + + +