Date: Sun, 10 Jun 2012 12:17:10 -0500 (CDT) From: Lars Eighner <luvbeastie@larseighner.com> To: Gary Aitken <freebsd@dreamchaser.org> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: <alt>fn going to X Message-ID: <alpine.BSF.2.00.1206101155520.42568@abbf.ynefrvtuareubzr.pbz> In-Reply-To: <4FD4CF8F.3030701@dreamchaser.org> References: <4FD4CF8F.3030701@dreamchaser.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 10 Jun 2012, Gary Aitken wrote: > What's the trick to allow <alt>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1206101155520.42568>