xmodmap, switch keys around
Roland Smith
rsmith at xs4all.nl
Mon Dec 29 18:59:01 UTC 2014
On Wed, Dec 24, 2014 at 08:03:39PM -0500, jenia.ivlev wrote:
>
> Hello.
>
> I would like to switch, on the right side of the keyboard, Ctrl with
> "Menu".
> And then, set "Menu" to be "Super".
>
> What I decided to do I to use `xmodmap -pke > .Xmodmap` and change a few
> line around:
>
> keycode 105 = Control_R NoSymbol Control_R
> keycode 135 = Menu NoSymbol Menu <--- change these two lines to
>
> keycode 105 = Menu NoSymbol Menu
> keycode 135 = Control_R NoSymbol Control_R
>
>
> But I can switch "Menu" with "Super" like this:
>
> keycode 135 = Menu NoSymbol Menu <---------- change this line to
> keycode 135 = Super_L NoSymbol Super_L
>
>
>
> 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").
>
> 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 ‘-verbose’ flag
tot test them. That might give you more feedback on what is happening.
Roland
--
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20141229/a571bc48/attachment.sig>
More information about the freebsd-x11
mailing list