I dont know much about how xkb works. But, this is my /etc/X11/xorg.conf.d/00-keyboard.conf file # Written by systemd-localed(8), read by systemd-localed and Xorg. It's # probably wise not to edit this file manually. Use localectl(1) to # instruct systemd-localed to update it. Section "InputClass" Identifier "system-keyboard" MatchIsKeyboard "on" Option "XkbLayout" "in" Option "XkbVariant" "eng" EndSection As you can see, It selects "eng" varient from symbols/in, here is that block xkb_symbols "eng" { include "us(basic)" name[Group1]= "English (India, with rupee)"; include "rupeesign(4)" include "level3(ralt_switch)" }; I understand that the last two lines are added to type "₹" by pressing AltGr+4, but it changes my AltGr to work as level3 switch, what should I do to, 1. make AltGr work as AltGr instead of level3_switch, its ok to loose ability to type rupeesign then loose AltGr In my openion, when a user select layout as "in" and variant as "eng", he should just get "us(basic)", "rupeesign" should be an out-in, rather than default. Loosing AltGr functionality for a key which I never use (I'm sure most people in india dont type this key freequently) is not right. Currently everytime "xkeyboard-config" update comes, I loose AltGr, I have to manually go to /usr/share/X11/xkb/symbols/in, comment out last two lines in "eng". I dont know some better way to preserve AltGr with "in(eng)" relevent Bug: https://bugs.freedesktop.org/show_bug.cgi?id=30236 relevent commit: 396de5b7138f25e49f4de3a0c871f09f08619867
I want to understand the complete issue here so asking following questions 1) Which Linux OS and its release are you using? 2) Why can't you remove "English (India, with rupee)" keymap and just add "English (US)"? 3) How AltGr changing to level3 is affecting your typing? We introduced "English (India, with rupee)" keymap just to have default rupee sign added to "us(basic)" keymap. If you want to only use "us(basic)" then why not switch as asked in question 2 above?
(In reply to Parag from comment #1) > I want to understand the complete issue here so asking following questions > > 1) Which Linux OS and its release are you using? Archlinux Gnome 3.28.2 > 2) Why can't you remove "English (India, with rupee)" keymap and just add > "English (US)"? As far as I remember, I didn't select "English (India, with rupee)" as my keyboard layout explicitly, this keyboard layout gets selected when I choose "English" as language and "India" as country and this is the whole point of this bug. When someone select "India" as country and "English" as language, should they need to have their AltGr key loose its functionality? > 3) How AltGr changing to level3 is affecting your typing? I'm a typist and emacs user, when I have to type some key combinations which involves Alt, I use both Left and Right Alt keys (for example, for alt-a, I'll press right-alt and then a, here both my hands gets involved. I think this is how typing was teached to me). Loosing Right Alt makes my flow go wrong. > We introduced "English (India, with rupee)" keymap just to have default > rupee sign added to "us(basic)" keymap. If you want to only use "us(basic)" > then why not switch as asked in question 2 above? My point is not about what layout I should use, my point is why rupee sign is added to default layout instead of keeping it as a variant. Whoever chooses "India" and "English" should loose AltGr functionality by default?
(In reply to Mohan R from comment #2) > > 2) Why can't you remove "English (India, with rupee)" keymap and just add > > "English (US)"? > > As far as I remember, I didn't select "English (India, with rupee)" as my > keyboard layout explicitly, this keyboard layout gets selected when I choose > "English" as language and "India" as country and this is the whole point of > this bug. When someone select "India" as country and "English" as language, > should they need to have their AltGr key loose its functionality? > I first need to understand which exact keymap is getting used by you. All I know in Gnome to add new keymap is via "gnome-control-center region". There under "Input Sources" click on "+" sign to get list of keymaps and select which keymap you want to add. I don't know here how to select first Country and then Language. Maybe provide me the exact application names or tools or screenshots about how can I reproduce your problem. also give the output of "setxkbmap -print" command. In this initial comment you have given xkb_symbols "eng" { include "us(basic)" name[Group1]= "English (India, with rupee)"; include "rupeesign(4)" include "level3(ralt_switch)" }; and said by removing last 2 include lines, fixes your problem. But then just see above block and name field. If this is that keymap that you are getting selected then is not it "English (India with rupee)" keymap?
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/issues/51.
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.