Map `AltGr + [' to `å'





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I'm on a Norwegian keyboard and use setxkbmap us to code. Sometimes I communicate in Norwegian. This requires me to setxkbmap no. That is rather annoying. I would like to remap the AltGr with another key to output the å character.



I've run xev and å has the byte code c3a5 on key symbol 34, with the name 'aring'. I have remapped it in a keydef file as:



keycode 34 = bracketleft braceleft aring Aring



Then I ran xmodmap ~/keydef. For some reason whenever I press AltGr and ], nothing shows up. What am I doing wrong?










share|improve this question

























  • Map AltGr + [ to 'å' <=!=> whenever I press AltGr and ], nothing shows - isn't this a bit confused? This looks like Linux, but which distro are you running? For Ubuntu: check the Text entry settings in the System Settings - switching keybord setttings should be one way to achieve what you're after.

    – Hannu
    Aug 9 '15 at 7:15













  • @Hannu: I'm on mint 17. Also I mean for the code point to be inserted instead of actually remapping, upon pressing AltGr + [.

    – Ultimate Hawk
    Aug 9 '15 at 8:16


















0















I'm on a Norwegian keyboard and use setxkbmap us to code. Sometimes I communicate in Norwegian. This requires me to setxkbmap no. That is rather annoying. I would like to remap the AltGr with another key to output the å character.



I've run xev and å has the byte code c3a5 on key symbol 34, with the name 'aring'. I have remapped it in a keydef file as:



keycode 34 = bracketleft braceleft aring Aring



Then I ran xmodmap ~/keydef. For some reason whenever I press AltGr and ], nothing shows up. What am I doing wrong?










share|improve this question

























  • Map AltGr + [ to 'å' <=!=> whenever I press AltGr and ], nothing shows - isn't this a bit confused? This looks like Linux, but which distro are you running? For Ubuntu: check the Text entry settings in the System Settings - switching keybord setttings should be one way to achieve what you're after.

    – Hannu
    Aug 9 '15 at 7:15













  • @Hannu: I'm on mint 17. Also I mean for the code point to be inserted instead of actually remapping, upon pressing AltGr + [.

    – Ultimate Hawk
    Aug 9 '15 at 8:16














0












0








0








I'm on a Norwegian keyboard and use setxkbmap us to code. Sometimes I communicate in Norwegian. This requires me to setxkbmap no. That is rather annoying. I would like to remap the AltGr with another key to output the å character.



I've run xev and å has the byte code c3a5 on key symbol 34, with the name 'aring'. I have remapped it in a keydef file as:



keycode 34 = bracketleft braceleft aring Aring



Then I ran xmodmap ~/keydef. For some reason whenever I press AltGr and ], nothing shows up. What am I doing wrong?










share|improve this question
















I'm on a Norwegian keyboard and use setxkbmap us to code. Sometimes I communicate in Norwegian. This requires me to setxkbmap no. That is rather annoying. I would like to remap the AltGr with another key to output the å character.



I've run xev and å has the byte code c3a5 on key symbol 34, with the name 'aring'. I have remapped it in a keydef file as:



keycode 34 = bracketleft braceleft aring Aring



Then I ran xmodmap ~/keydef. For some reason whenever I press AltGr and ], nothing shows up. What am I doing wrong?







keyboard remapping






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 4 at 21:29









TDK

34513




34513










asked Aug 9 '15 at 0:56









Ultimate HawkUltimate Hawk

1326




1326













  • Map AltGr + [ to 'å' <=!=> whenever I press AltGr and ], nothing shows - isn't this a bit confused? This looks like Linux, but which distro are you running? For Ubuntu: check the Text entry settings in the System Settings - switching keybord setttings should be one way to achieve what you're after.

    – Hannu
    Aug 9 '15 at 7:15













  • @Hannu: I'm on mint 17. Also I mean for the code point to be inserted instead of actually remapping, upon pressing AltGr + [.

    – Ultimate Hawk
    Aug 9 '15 at 8:16



















  • Map AltGr + [ to 'å' <=!=> whenever I press AltGr and ], nothing shows - isn't this a bit confused? This looks like Linux, but which distro are you running? For Ubuntu: check the Text entry settings in the System Settings - switching keybord setttings should be one way to achieve what you're after.

    – Hannu
    Aug 9 '15 at 7:15













  • @Hannu: I'm on mint 17. Also I mean for the code point to be inserted instead of actually remapping, upon pressing AltGr + [.

    – Ultimate Hawk
    Aug 9 '15 at 8:16

















Map AltGr + [ to 'å' <=!=> whenever I press AltGr and ], nothing shows - isn't this a bit confused? This looks like Linux, but which distro are you running? For Ubuntu: check the Text entry settings in the System Settings - switching keybord setttings should be one way to achieve what you're after.

– Hannu
Aug 9 '15 at 7:15







Map AltGr + [ to 'å' <=!=> whenever I press AltGr and ], nothing shows - isn't this a bit confused? This looks like Linux, but which distro are you running? For Ubuntu: check the Text entry settings in the System Settings - switching keybord setttings should be one way to achieve what you're after.

– Hannu
Aug 9 '15 at 7:15















@Hannu: I'm on mint 17. Also I mean for the code point to be inserted instead of actually remapping, upon pressing AltGr + [.

– Ultimate Hawk
Aug 9 '15 at 8:16





@Hannu: I'm on mint 17. Also I mean for the code point to be inserted instead of actually remapping, upon pressing AltGr + [.

– Ultimate Hawk
Aug 9 '15 at 8:16










1 Answer
1






active

oldest

votes


















1














Perhaps you don't have AltGr and Mode_switch on the same modifier, see the output of



xmodmap -pm


However, you might like to read this very useful archlinux page on keyboard configuration. They suggest you would be better off doing, eg:



localectl --no-convert set-x11-keymap us,no pc104 grp:caps_toggle


which creates a permanent setup which shifts between the 2 mappings us and no by pressing the caps lock key. Lots of other toggle keys are available. List them with:



grep "grp:.*toggle" /usr/share/X11/xkb/rules/base.lst


The temporary setxkbmap equivalent is probably (not tested)



setxkbmap us,no pc104 '' grp:caps_toggle


but for those who dont read the comments, this is what finally worked for OP:



setxkbmap -model pc104 -layout us,no -option grp:alt_shift_toggle





share|improve this answer


























  • Your answer did not work at all for some reason. I tried with other combinations to no avail. What worked was the following setxkbmap -model pc104 -layout us,no -option grp:alt_shift_toggle. That is the answer. As a tangent: why don't tools consistently use -- for multi-character arguments? gcc and find also torture us with it.

    – Ultimate Hawk
    Aug 9 '15 at 9:43











  • @BourgondAries glad you persevered. I added your solution to my post in case others dont read far enough.

    – meuh
    Aug 9 '15 at 9:52












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f954089%2fmap-altgr-to-%25c3%25a5%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Perhaps you don't have AltGr and Mode_switch on the same modifier, see the output of



xmodmap -pm


However, you might like to read this very useful archlinux page on keyboard configuration. They suggest you would be better off doing, eg:



localectl --no-convert set-x11-keymap us,no pc104 grp:caps_toggle


which creates a permanent setup which shifts between the 2 mappings us and no by pressing the caps lock key. Lots of other toggle keys are available. List them with:



grep "grp:.*toggle" /usr/share/X11/xkb/rules/base.lst


The temporary setxkbmap equivalent is probably (not tested)



setxkbmap us,no pc104 '' grp:caps_toggle


but for those who dont read the comments, this is what finally worked for OP:



setxkbmap -model pc104 -layout us,no -option grp:alt_shift_toggle





share|improve this answer


























  • Your answer did not work at all for some reason. I tried with other combinations to no avail. What worked was the following setxkbmap -model pc104 -layout us,no -option grp:alt_shift_toggle. That is the answer. As a tangent: why don't tools consistently use -- for multi-character arguments? gcc and find also torture us with it.

    – Ultimate Hawk
    Aug 9 '15 at 9:43











  • @BourgondAries glad you persevered. I added your solution to my post in case others dont read far enough.

    – meuh
    Aug 9 '15 at 9:52
















1














Perhaps you don't have AltGr and Mode_switch on the same modifier, see the output of



xmodmap -pm


However, you might like to read this very useful archlinux page on keyboard configuration. They suggest you would be better off doing, eg:



localectl --no-convert set-x11-keymap us,no pc104 grp:caps_toggle


which creates a permanent setup which shifts between the 2 mappings us and no by pressing the caps lock key. Lots of other toggle keys are available. List them with:



grep "grp:.*toggle" /usr/share/X11/xkb/rules/base.lst


The temporary setxkbmap equivalent is probably (not tested)



setxkbmap us,no pc104 '' grp:caps_toggle


but for those who dont read the comments, this is what finally worked for OP:



setxkbmap -model pc104 -layout us,no -option grp:alt_shift_toggle





share|improve this answer


























  • Your answer did not work at all for some reason. I tried with other combinations to no avail. What worked was the following setxkbmap -model pc104 -layout us,no -option grp:alt_shift_toggle. That is the answer. As a tangent: why don't tools consistently use -- for multi-character arguments? gcc and find also torture us with it.

    – Ultimate Hawk
    Aug 9 '15 at 9:43











  • @BourgondAries glad you persevered. I added your solution to my post in case others dont read far enough.

    – meuh
    Aug 9 '15 at 9:52














1












1








1







Perhaps you don't have AltGr and Mode_switch on the same modifier, see the output of



xmodmap -pm


However, you might like to read this very useful archlinux page on keyboard configuration. They suggest you would be better off doing, eg:



localectl --no-convert set-x11-keymap us,no pc104 grp:caps_toggle


which creates a permanent setup which shifts between the 2 mappings us and no by pressing the caps lock key. Lots of other toggle keys are available. List them with:



grep "grp:.*toggle" /usr/share/X11/xkb/rules/base.lst


The temporary setxkbmap equivalent is probably (not tested)



setxkbmap us,no pc104 '' grp:caps_toggle


but for those who dont read the comments, this is what finally worked for OP:



setxkbmap -model pc104 -layout us,no -option grp:alt_shift_toggle





share|improve this answer















Perhaps you don't have AltGr and Mode_switch on the same modifier, see the output of



xmodmap -pm


However, you might like to read this very useful archlinux page on keyboard configuration. They suggest you would be better off doing, eg:



localectl --no-convert set-x11-keymap us,no pc104 grp:caps_toggle


which creates a permanent setup which shifts between the 2 mappings us and no by pressing the caps lock key. Lots of other toggle keys are available. List them with:



grep "grp:.*toggle" /usr/share/X11/xkb/rules/base.lst


The temporary setxkbmap equivalent is probably (not tested)



setxkbmap us,no pc104 '' grp:caps_toggle


but for those who dont read the comments, this is what finally worked for OP:



setxkbmap -model pc104 -layout us,no -option grp:alt_shift_toggle






share|improve this answer














share|improve this answer



share|improve this answer








edited Aug 9 '15 at 9:50

























answered Aug 9 '15 at 9:00









meuhmeuh

3,71511021




3,71511021













  • Your answer did not work at all for some reason. I tried with other combinations to no avail. What worked was the following setxkbmap -model pc104 -layout us,no -option grp:alt_shift_toggle. That is the answer. As a tangent: why don't tools consistently use -- for multi-character arguments? gcc and find also torture us with it.

    – Ultimate Hawk
    Aug 9 '15 at 9:43











  • @BourgondAries glad you persevered. I added your solution to my post in case others dont read far enough.

    – meuh
    Aug 9 '15 at 9:52



















  • Your answer did not work at all for some reason. I tried with other combinations to no avail. What worked was the following setxkbmap -model pc104 -layout us,no -option grp:alt_shift_toggle. That is the answer. As a tangent: why don't tools consistently use -- for multi-character arguments? gcc and find also torture us with it.

    – Ultimate Hawk
    Aug 9 '15 at 9:43











  • @BourgondAries glad you persevered. I added your solution to my post in case others dont read far enough.

    – meuh
    Aug 9 '15 at 9:52

















Your answer did not work at all for some reason. I tried with other combinations to no avail. What worked was the following setxkbmap -model pc104 -layout us,no -option grp:alt_shift_toggle. That is the answer. As a tangent: why don't tools consistently use -- for multi-character arguments? gcc and find also torture us with it.

– Ultimate Hawk
Aug 9 '15 at 9:43





Your answer did not work at all for some reason. I tried with other combinations to no avail. What worked was the following setxkbmap -model pc104 -layout us,no -option grp:alt_shift_toggle. That is the answer. As a tangent: why don't tools consistently use -- for multi-character arguments? gcc and find also torture us with it.

– Ultimate Hawk
Aug 9 '15 at 9:43













@BourgondAries glad you persevered. I added your solution to my post in case others dont read far enough.

– meuh
Aug 9 '15 at 9:52





@BourgondAries glad you persevered. I added your solution to my post in case others dont read far enough.

– meuh
Aug 9 '15 at 9:52


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f954089%2fmap-altgr-to-%25c3%25a5%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

Puebla de Zaragoza

Musa