Bug 55311 - [PATCH] Add the following ctrl option: Right Alt as Right Ctrl, Right Win as Right Alt
Summary: [PATCH] Add the following ctrl option: Right Alt as Right Ctrl, Right Win as ...
Status: RESOLVED DUPLICATE of bug 81271
Alias: None
Product: xkeyboard-config
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: xkb
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-25 09:42 UTC by Réczey Bálint
Modified: 2014-08-18 07:48 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
adding ctrl:ralt_rctrl_norwin (1.97 KB, text/plain)
2012-09-25 09:42 UTC, Réczey Bálint
Details

Description Réczey Bálint 2012-09-25 09:42:09 UTC
Created attachment 67671 [details]
adding ctrl:ralt_rctrl_norwin

This makes right modifier keys on MacBook keyboards arranged similarly to
modifiers on PC keyboards.
Comment 1 Sergey V. Udaltsov 2012-09-25 09:48:19 UTC
Who and why would need that strange option?
Comment 2 Sergey V. Udaltsov 2012-09-25 09:49:11 UTC
Sorry, did not notice the note about macbooks. Could you please attach the image explaining the mapping? Photo of the keyboard would do (with some markings, perhaps)
Comment 3 Réczey Bálint 2012-09-25 10:08:15 UTC
Photo:
http://www.sefikbeydoner.com/wp-content/uploads/macbook-air-keyboard-part-number_7966_1.jpg

The worst part is that AFAIK I can not swap left Ctrl and Fn. :-\
Comment 4 Réczey Bálint 2012-10-08 11:51:55 UTC
Does the photo make the change reasonable? :-)
Comment 5 Sergey V. Udaltsov 2012-12-20 23:38:13 UTC
Ok. Could we put it into base.extras.xml.in? The option seems to be somewhat exotic
Comment 6 Réczey Bálint 2012-12-21 09:33:19 UTC
(In reply to comment #5)
> Ok. Could we put it into base.extras.xml.in? The option seems to be somewhat
> exotic

Sure. Should I change the patch?
Comment 7 Sergey V. Udaltsov 2012-12-21 10:13:20 UTC
Yes please
Comment 8 Réczey Bálint 2012-12-21 10:59:03 UTC
(In reply to comment #7)
> Yes please
I checked base.extras.xml.in and there are mostly variants.
Since this swapping of keys could be useful for MacBooks with any local layout I
think having an option like it is present in the current patch would be better.
It is not a special layout, but a rearrangement of keys to make several layouts more
usable with programs created with PC layout in mind.

For me, not having a right control was pretty painful while working in Emacs for example.
Comment 9 Sergey V. Udaltsov 2012-12-23 21:32:08 UTC
There is similar (also related to Macbook keyboards) bug #57813. Would that be some kind of alternative solution for you?
Comment 10 Sergey V. Udaltsov 2012-12-23 22:16:14 UTC
I committed that alternative solution. would it be enough for you as well?
Comment 11 Réczey Bálint 2014-01-02 22:24:41 UTC
No, it made the situation worse for me since I don't need RWin and the order of the tweaks can't be controlled by me, thus it prevents me from creating a right control.

I moved to xmodmap instead using patched xkb, this works fine for me.
rbalint@chaos:~$ cat .Xmodmap
! settings for apple keyboards

! Caps Lock is Control_L
keycode  66 =  Control_L NoSymbol Control_L

! original:
!keycode  64 = Alt_L Meta_L Alt_L Meta_L
!keycode 133 = Super_L NoSymbol Super_L
!keycode 134 = Super_R NoSymbol Super_R
!keycode 108 = Alt_R Meta_R Alt_R Meta_R

! remap them
keycode  64 = Super_L NoSymbol Super_L
keycode 133 = Alt_L Meta_L Alt_L Meta_L
keycode 134 = Alt_R Meta_R Alt_R Meta_R
keycode 108 = Control_R NoSymbol Control_R

clear Control
clear Mod1
clear Mod4
clear Lock
! Caps Lock works as Control
add Control = Control_L Control_R Caps_Lock
add Mod1 = Alt_L Alt_R
add Mod4 = Super_L Super_R
Comment 12 Sergey V. Udaltsov 2014-08-17 23:01:03 UTC
well, for now I will close this as WONTFIX but if more people complain, I might reconsider fixing it on xkb level...
Comment 13 Sergey V. Udaltsov 2014-08-17 23:05:36 UTC

*** This bug has been marked as a duplicate of bug 81271 ***
Comment 14 Réczey Bálint 2014-08-18 07:14:27 UTC
(In reply to comment #13)
> 
> *** This bug has been marked as a duplicate of bug 81271 ***
(In reply to comment #12)
> well, for now I will close this as WONTFIX but if more people complain, I
> might reconsider fixing it on xkb level...

I fail to follow the bug handling logic here.
First you commit something which breaks my fix then when I migrate away from using the software I opened the bug agains because I give up fixing it you close the bug with wontfix not seeing enough people complaining.
Is there a yearly target for decreasing the number of users? :-)
Comment 15 Sergey V. Udaltsov 2014-08-18 07:19:48 UTC
Is resolution of #81271 good enough for you?
Comment 16 Réczey Bálint 2014-08-18 07:48:13 UTC
(In reply to comment #15)
> Is resolution of #81271 good enough for you?
I will check it after setting up a VM for it, but even if it works I still don't see the point of fixing the problem in a way which requires changing the kernel module parameters instead of fixing it for the default kernel settings.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.