From owner-freebsd-questions@FreeBSD.ORG Sun Jun 10 17:18:50 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7EE74106566C for ; Sun, 10 Jun 2012 17:18:50 +0000 (UTC) (envelope-from lars@larseighner.com) Received: from mail.team1internet.com (mail.team1internet.com [216.110.13.10]) by mx1.freebsd.org (Postfix) with ESMTP id 5C8968FC17 for ; Sun, 10 Jun 2012 17:18:50 +0000 (UTC) Received: from larseighner.com (unknown [71.20.75.102]) by mail.team1internet.com (Postfix) with SMTP id 3A86416B4A6; Sun, 10 Jun 2012 12:18:44 -0500 (CDT) Received: by larseighner.com (nbSMTP-1.00) for uid 1001 lars@larseighner.com; Sun, 10 Jun 2012 12:17:11 -0500 (CDT) Date: Sun, 10 Jun 2012 12:17:10 -0500 (CDT) From: Lars Eighner X-X-Sender: lars@noos.larseighnerhome.com To: Gary Aitken In-Reply-To: <4FD4CF8F.3030701@dreamchaser.org> Message-ID: References: <4FD4CF8F.3030701@dreamchaser.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Mailing List Subject: Re: fn going to X X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2012 17:18:50 -0000 On Sun, 10 Jun 2012, Gary Aitken wrote: > What's the trick to allow fn to still be used to switch vtys when > running X? > At first I thought it was the wm grabbing it, but I've disabled that and > now it goes to whatever app has the focus. Seems like something in the > kernel has to grab it before it gets passed on to X. KVM does not allow VT switching (at last report), but changes are promised. Otherwise, in an xterm (or other terminal in X) dump xmodmap in its reloadable form: $xmodmap -pke > foo.txt now you can edit foo.txt as you please. This is mine with ctrl-alt-Fn mapped to VT_switching. keycode 67 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1 keycode 68 = F2 F2 F2 F2 F2 F2 XF86Switch_VT_2 You may want, for example: keycode 67 = F1 F1 F1 F1 XF86Switch_VT_1 F1 F1 keycode 68 = F2 F2 F2 F2 XF86Switch_VT_2 F2 F2 when you have finished editing, save this file to .xmodmap because you used -pke and were careful in your editing, this can be loaded by your window manager. In fvwm2 that loading looks like: + I exec xmodmap .xmodmap as in, for example: DestroyFunc InitFunction AddToFunc InitFunction + I Module FvwmBanner + I exec xphoon + I exec xmodmap .xmodmap + I exec xmodmap -e "keysym Num_Lock = Num_Lock Pointer_EnableKeys" + I exec xclipboard You can also load .xmodmap by running $xmodmap .xmodmap in an xterm. But you almost certainly want it loaded automatically (as in the fvwm2 example above), but how to do this in your particular window manager you will have to discover from the documentation of your window manger. -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266