From owner-freebsd-x11@FreeBSD.ORG Fri Aug 8 22:08:59 2008 Return-Path: Delivered-To: freebsd-x11@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE42A1065682 for ; Fri, 8 Aug 2008 22:08:59 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp8-g19.free.fr (smtp8-g19.free.fr [212.27.42.65]) by mx1.freebsd.org (Postfix) with ESMTP id AEF478FC0A for ; Fri, 8 Aug 2008 22:08:59 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp8-g19.free.fr (localhost [127.0.0.1]) by smtp8-g19.free.fr (Postfix) with ESMTP id CF36C32A865; Sat, 9 Aug 2008 00:08:58 +0200 (CEST) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp8-g19.free.fr (Postfix) with ESMTP id 8493832A849; Sat, 9 Aug 2008 00:08:58 +0200 (CEST) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id 01C9B9B497; Fri, 8 Aug 2008 22:02:41 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id EE1674089; Sat, 9 Aug 2008 00:02:40 +0200 (CEST) Date: Sat, 9 Aug 2008 00:02:40 +0200 From: Jeremie Le Hen To: Andriy Gapon Message-ID: <20080808220240.GK27033@obiwan.tataz.chchile.org> References: <20080719224711.GM39074@obiwan.tataz.chchile.org> <4896F8AE.6020302@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4896F8AE.6020302@icyb.net.ua> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: freebsd-x11@FreeBSD.org, Jeremie Le Hen Subject: Re: Mapping Control-Delete to BackSpace X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2008 22:09:00 -0000 Hi Andriy, On Mon, Aug 04, 2008 at 03:40:14PM +0300, Andriy Gapon wrote: > on 20/07/2008 01:47 Jeremie Le Hen said the following: > > Hi there! > > > > Please Cc: me when replying. > > > > The backspace key on my laptop is dead. I'd like to map Control-Delete > > to BackSpace using xmodmap(1). It's straightforward to do for > > Shift-Delete, but I can't figure out how to do so for Control-Delete. > > > > Any help would be welcome. > > Not sure about xmodmap but you can modify your > /usr/local/share/X11/xkb/symbols/pc to have the following definition for > Delete key: > > key { type="PC_CONTROL_LEVEL2", [ Delete, BackSpace ] }; > > You can do more research on XKB configuration and how to do the above in > non-intrusive way. > The key thing here is you need to change type of Delete key to > control-modifiable. Thank you very much! I didn't know that xkb was that mighty! :) For the records, I've create a new keyboard layout like this: % jarjarbinks:~:143# cat /usr/local/share/X11/xkb/symbols/jarjarbinks % partial default alphanumeric_keys % xkb_symbols "basic" { % include "fr" % key { % type= "PC_CONTROL_LEVEL2", % symbols[Group1]= [ Delete, BackSpace ] % }; % }; % Best regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >