Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Dec 2014 19:58:57 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        "jenia.ivlev" <jenia.ivlev@gmail.com>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: xmodmap, switch keys around
Message-ID:  <20141229185857.GA1782@slackbox.erewhon.home>
In-Reply-To: <87ppb8a6c4.fsf@gmail.com>
References:  <87ppb8a6c4.fsf@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141229185857.GA1782>