From owner-freebsd-x11@FreeBSD.ORG Mon Dec 29 18:59:01 2014 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 31301885 for ; Mon, 29 Dec 2014 18:59:01 +0000 (UTC) Received: from lb3-smtp-cloud3.xs4all.net (lb3-smtp-cloud3.xs4all.net [194.109.24.30]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B84071AD7 for ; Mon, 29 Dec 2014 18:59:00 +0000 (UTC) Received: from slackbox.erewhon.home ([83.162.243.5]) by smtp-cloud3.xs4all.net with ESMTP id ZWyx1p00207iGuj01Wyyro; Mon, 29 Dec 2014 19:58:58 +0100 Received: by slackbox.erewhon.home (Postfix, from userid 1001) id 253E0123CF; Mon, 29 Dec 2014 19:58:57 +0100 (CET) Date: Mon, 29 Dec 2014 19:58:57 +0100 From: Roland Smith To: "jenia.ivlev" Subject: Re: xmodmap, switch keys around Message-ID: <20141229185857.GA1782@slackbox.erewhon.home> References: <87ppb8a6c4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OgqxwSJOaUobr8KG" Content-Disposition: inline In-Reply-To: <87ppb8a6c4.fsf@gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2014 18:59:01 -0000 --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 24, 2014 at 08:03:39PM -0500, jenia.ivlev wrote: >=20 > Hello. >=20 > I would like to switch, on the right side of the keyboard, Ctrl with > "Menu". > And then, set "Menu" to be "Super". >=20 > What I decided to do I to use `xmodmap -pke > .Xmodmap` and change a few > line around: >=20 > keycode 105 =3D Control_R NoSymbol Control_R=20 > keycode 135 =3D Menu NoSymbol Menu <--- change these two lines to=20 >=20 > keycode 105 =3D Menu NoSymbol Menu=20 > keycode 135 =3D Control_R NoSymbol Control_R >=20 >=20 > But I can switch "Menu" with "Super" like this: >=20 > keycode 135 =3D Menu NoSymbol Menu <---------- change this line to > keycode 135 =3D Super_L NoSymbol Super_L >=20 >=20 >=20 > By the way, I tried to do these two thing separately. That is, the first > thing first. When it didnt work, I logged out and logged in and tried > the second thing (simply change "menu" to be "super"). >=20 > So why does the first thing work but not the second? You are trying to assign two different things to the same keycode. If you are trying to change things like this, use xmodmap's =E2=80=98-verbo= se=E2=80=99 flag tot test them. That might give you more feedback on what is happening. Roland --=20 R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 5753 3324 1661 B0FE 8D93 FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0) --OgqxwSJOaUobr8KG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABAgAGBQJUoaRxAAoJEED21dyjijPgUk8QAKaTvX+9yCD8ZmsNC+NP5Co8 L7dKb08skLTrErsx2/DvgfLk+UtjyFe09hQrUxGKd1L5rTJ38S4V13pRzMDsp91j EM7SOHc0zWajyo9OA4F+JE1iQ+ibW2r5o5Zu+tbuDDqrUGSUZcHScoLsWTKrP3K0 GNK7q6M7l5cdsihUJDGV+PC1pf/vdiTVopRZUbmRDvTBq5tnLcF8wotJRM+AYNs2 KMPaaRkP50tQsXgQTBzZPJwPvi92mv7GWwq5jcVyeccQK1lF6x2PIqDoymTpA/p4 wY0N+Tt1QFgMgy71zfP/Uhz1zDhLG8PegTXYM11+950qdnU0sw1o4oZg8R2ejGfT gv+GSkYsfyt54krSxlnalIp8QSdPKMTZxULAm4lgqrDYbzbKB4/wzZs01CKIpobS pJp3ratqr+1ahhhRY02i1HqKvTr+q5u9J/ZsFJFtfo2hIXXlpM62kMx8QaUZGOoe tdtaV1devhxARQzHHGXRRReHZliRIki/XrtWR/OOxDoHrrcpjV19wx8vMBq8AI1G sHKpOuwrYP8XGCuHxPLDSFQ2AF7IKuiK5idrSB61CsgCP7IAk2MpOnes9gtNSJQ3 A4exNdXzDVxTKEEYhQECD1Nqa/encVN4Z7zuebnXx37v/55KabIPwEnwWCGJIGaN 0Pmx3tRx2FxELnl7f0PY =JsP/ -----END PGP SIGNATURE----- --OgqxwSJOaUobr8KG--