From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re-Mapping Keys Date: Tue, 27 Oct 2020 19:13:10 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14064"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 27 19:33:12 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXTmS-0003YG-5K for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 19:33:12 +0100 Original-Received: from localhost ([::1]:45260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXTmQ-0006ET-W7 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 14:33:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXTT8-0007uc-Di for help-gnu-emacs@gnu.org; Tue, 27 Oct 2020 14:13:14 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:51479) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXTT5-0001Z5-Uv for help-gnu-emacs@gnu.org; Tue, 27 Oct 2020 14:13:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1603822390; bh=7Vzn1j2Vci+n8LIKbqeFNgShL5o+ZEI8zYZIi/zw6Uo=; h=X-UI-Sender-Class:From:To:Subject:Date; b=F7KZi54qsiSgq69RzonIqhkH3zHsbgX2R9xmizxL5BdgmEnWd/JbmJ0p66uf1Wdvd onQ9JLnQ1BQeEUDyHslSOLvaWk7Qo0/oJoe2Zzmh/9qR78hITPTzP0ppvZR35246su f3Twf0t8UVBV3UyInVjXfEerFjEGhH317JhPeDvs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Tue, 27 Oct 2020 19:13:10 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:vXoCycsgAYLs+iW7+eiEoRcpD6LPaqi6RgYiR2iUr1bRI/6CCeE3Wk7GCW8ocWfMWyU/i Cp/JR7lu8h2/KoB4DBO9ovf3LJHdXi7M4FOTRQTaXjzMPy4n2m9/Lv/vO/IzzzjLvgar7lywlnU4 DYera8/47HGSsyBgE/JUF+vS0aThuRa/viAEtV48E7Zlpg6qIuE7AimJdE/jh987z8Ef4vF3uJPI gUyzjF2XeM/vi0/kPWOQFrrdIDccQr3HHKFQg/13cERBnE+BWPreACcjXkL/I7NinEzczmgdAzq9 3w= X-UI-Out-Filterresults: notjunk:1;V03:K0:/T3ehWLa3GU=:7nddAh25bsUDk4ib3CNqbv o9Gj5TUs0mHHojOAk8ncvLQ6fdPeVYUjb/h5sEAylD+ItIMH0GVjFKRoS5YdaP6ohcaS+mWZv o1kpVLaWSSsoC5RE97rq7iRkM/XJ89Sugoyzx0jwrhfh9YVc3BYQEHGs3b/o4ekG7PIekxFk+ qj0HCcVq0Ln+lqqRvly+s0DPs7i1NcmlyShvPXIMFVZc3jHydluvJI76ZnxEW32K/j7YjTqLU DChk3rHPk6YmFKcqsxuidevD6rqvS3y1GI372Ft+iVjZgBbMsV3vPsBXxTFvRPUEt6RP61hFX vXEiSe2Fb1WfYw3aXHbbMSmZVtrhdQ3MqtJahgDWrNsGy1DPmbydvJrpflLKWpmrE1BqEKU/7 0/wmoB1VnTuucTLHuPlcmpt6bPLNnu6s7ckqObJQGfX6vatlBWPLTkVV2P/AP2nSEqQcjB7Nj YxbjWmlSTPv1eNwUUli0BkpKLB1TL+1F6U8L9uJzoXVOX729z+CO6X+QMxJYq3Kyf7l0a78YT V4xgB+5fyAijgqbbSyzgA2AOdNCxgtv8Afu6YsY9ZKnntGaWyFvHL5rN2/1rBcVPn05lxsDVk ni+xeHdTC/2xA= Received-SPF: pass client-ip=212.227.17.20; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/27 14:02:42 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124742 Archived-At: I am trying to re-map keys using xmodmap but got into serious difficulties= . What I want to do is this: 1. Make Ctrl_L, Ctrl_R closest to Space Bar 2. Map Alt_L, Alt_R next to Ctrl_L and Ctrl_R 3. Make Meta be same as Alt 4. Make original position of Alt be Hyper 5. Make Caps_Lock at position of Caps_Lock This is my new file to implement the changes. =2D-----------------------Xmodmap--------------------------- ! Setup for Hyper clear mod4 keycode 37 =3D Hyper_L NoSymbol Hyper_L NoSymbol keycode 105 =3D Hyper_L NoSymbol Hyper_L NoSymbol ! Set Super Keys to Position of Caps_Lock keycode 66 =3D Super_R NoSymbol Super_R NoSymbol add mod3 =3D Super_L Super_R add mod4 =3D Hyper_L ! Changes to Ctrl, Alt, and Meta. clear control clear mod1 clear mod5 keycode 64 =3D Control_L NoSymbol Control_L NoSymbol keycode 108 =3D Control_R NoSymbol Control_R NoSymbol keycode 133 =3D Alt_L Meta_L Alt_L Meta_L keycode 134 =3D Alt_L Meta_L Alt_L Meta_L add control =3D Control_L Control_R add mod1 =3D Alt_L Meta_L add mod5 =3D Alt_L Meta_L =2D-----------------------Xmodmap--------------------------- Initially I have got the following settings xmodmap xmodmap: up to 4 keys per modifier, (keycodes in parentheses): shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x42) control Control_L (0x25), Control_R (0x69) mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd) mod2 Num_Lock (0x4d) mod3 mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0x= cf) mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb) xmodmap -pke | grep "Control\|Meta\|Alt\|Super" keycode 37 =3D Control_L NoSymbol Control_L keycode 64 =3D Alt_L Meta_L Alt_L Meta_L keycode 105 =3D Control_R NoSymbol Control_R keycode 108 =3D Alt_R Meta_R ISO_Level3_Shift keycode 133 =3D Super_L NoSymbol Super_L keycode 134 =3D Super_R NoSymbol Super_R keycode 204 =3D NoSymbol Alt_L NoSymbol Alt_L keycode 205 =3D NoSymbol Meta_L NoSymbol Meta_L keycode 206 =3D NoSymbol Super_L NoSymbol Super_L