How to make Alt+Shift act like AltGr with xmodmap?












0















I just swapped from Windows and I was used to using Alt+Shift to type special characters such as |@#~½¬from the number row, but it only works with Alt Gr on Ubuntu. It's not in the settings either so I figured xmodmap is the way to go. But the only way to make it work I've found is by remapping every single special character, like keycode 21 = equal plus equal plus semicolon colon.



Is there any way of copying Alt Gr to Alt+Shift?










share|improve this question

























  • There's quite a few questions about remapping altgr here. These might be a good place to continue your research while waiting for an answer: superuser.com/search?q=altgr

    – music2myear
    Feb 6 at 18:22











  • As I've said, these only suggest adding every single special character to the list. The closest I saw was xmodmap -e "keysym Super_L = Alt_R", which only adds it to the left alt instead of to left alt + shift

    – glow008
    Feb 6 at 18:35
















0















I just swapped from Windows and I was used to using Alt+Shift to type special characters such as |@#~½¬from the number row, but it only works with Alt Gr on Ubuntu. It's not in the settings either so I figured xmodmap is the way to go. But the only way to make it work I've found is by remapping every single special character, like keycode 21 = equal plus equal plus semicolon colon.



Is there any way of copying Alt Gr to Alt+Shift?










share|improve this question

























  • There's quite a few questions about remapping altgr here. These might be a good place to continue your research while waiting for an answer: superuser.com/search?q=altgr

    – music2myear
    Feb 6 at 18:22











  • As I've said, these only suggest adding every single special character to the list. The closest I saw was xmodmap -e "keysym Super_L = Alt_R", which only adds it to the left alt instead of to left alt + shift

    – glow008
    Feb 6 at 18:35














0












0








0








I just swapped from Windows and I was used to using Alt+Shift to type special characters such as |@#~½¬from the number row, but it only works with Alt Gr on Ubuntu. It's not in the settings either so I figured xmodmap is the way to go. But the only way to make it work I've found is by remapping every single special character, like keycode 21 = equal plus equal plus semicolon colon.



Is there any way of copying Alt Gr to Alt+Shift?










share|improve this question
















I just swapped from Windows and I was used to using Alt+Shift to type special characters such as |@#~½¬from the number row, but it only works with Alt Gr on Ubuntu. It's not in the settings either so I figured xmodmap is the way to go. But the only way to make it work I've found is by remapping every single special character, like keycode 21 = equal plus equal plus semicolon colon.



Is there any way of copying Alt Gr to Alt+Shift?







linux ubuntu linux-mint arch-linux xmodmap






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 6 at 18:49







glow008

















asked Feb 6 at 18:14









glow008glow008

12




12













  • There's quite a few questions about remapping altgr here. These might be a good place to continue your research while waiting for an answer: superuser.com/search?q=altgr

    – music2myear
    Feb 6 at 18:22











  • As I've said, these only suggest adding every single special character to the list. The closest I saw was xmodmap -e "keysym Super_L = Alt_R", which only adds it to the left alt instead of to left alt + shift

    – glow008
    Feb 6 at 18:35



















  • There's quite a few questions about remapping altgr here. These might be a good place to continue your research while waiting for an answer: superuser.com/search?q=altgr

    – music2myear
    Feb 6 at 18:22











  • As I've said, these only suggest adding every single special character to the list. The closest I saw was xmodmap -e "keysym Super_L = Alt_R", which only adds it to the left alt instead of to left alt + shift

    – glow008
    Feb 6 at 18:35

















There's quite a few questions about remapping altgr here. These might be a good place to continue your research while waiting for an answer: superuser.com/search?q=altgr

– music2myear
Feb 6 at 18:22





There's quite a few questions about remapping altgr here. These might be a good place to continue your research while waiting for an answer: superuser.com/search?q=altgr

– music2myear
Feb 6 at 18:22













As I've said, these only suggest adding every single special character to the list. The closest I saw was xmodmap -e "keysym Super_L = Alt_R", which only adds it to the left alt instead of to left alt + shift

– glow008
Feb 6 at 18:35





As I've said, these only suggest adding every single special character to the list. The closest I saw was xmodmap -e "keysym Super_L = Alt_R", which only adds it to the left alt instead of to left alt + shift

– glow008
Feb 6 at 18:35










1 Answer
1






active

oldest

votes


















0














I've come to the conclusion after hours of trying that it is not possible with Autokey, xmodmap or setxkbmap to copy AltGr to Alt_L and Shift_L.




  • Autokey doesn't allow a shortcut like Alt+Shift, since it also needs another character. Alt, Shift, Control... only count as combinations with other keys and they won't work by themselves


  • xmodmap should have worked with xmodmap -e "keysym Meta_L = ISO_Level3_Shift" but it only assigns the function to Alt_L, Shift_L does something similar, typing different special characters. Besides, when this is activated, these keys will only work for that purpose (You can't do Alt+Tab etc)


  • setxkbmap should have worked too with setxkbmap -option Meta_L:ISO_Level3_Shift but it apparently does nothing. When tested with xev it does change the input key but it's something different from ISO_Level3_Shift







share|improve this answer























    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%2f1402800%2fhow-to-make-altshift-act-like-altgr-with-xmodmap%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









    0














    I've come to the conclusion after hours of trying that it is not possible with Autokey, xmodmap or setxkbmap to copy AltGr to Alt_L and Shift_L.




    • Autokey doesn't allow a shortcut like Alt+Shift, since it also needs another character. Alt, Shift, Control... only count as combinations with other keys and they won't work by themselves


    • xmodmap should have worked with xmodmap -e "keysym Meta_L = ISO_Level3_Shift" but it only assigns the function to Alt_L, Shift_L does something similar, typing different special characters. Besides, when this is activated, these keys will only work for that purpose (You can't do Alt+Tab etc)


    • setxkbmap should have worked too with setxkbmap -option Meta_L:ISO_Level3_Shift but it apparently does nothing. When tested with xev it does change the input key but it's something different from ISO_Level3_Shift







    share|improve this answer




























      0














      I've come to the conclusion after hours of trying that it is not possible with Autokey, xmodmap or setxkbmap to copy AltGr to Alt_L and Shift_L.




      • Autokey doesn't allow a shortcut like Alt+Shift, since it also needs another character. Alt, Shift, Control... only count as combinations with other keys and they won't work by themselves


      • xmodmap should have worked with xmodmap -e "keysym Meta_L = ISO_Level3_Shift" but it only assigns the function to Alt_L, Shift_L does something similar, typing different special characters. Besides, when this is activated, these keys will only work for that purpose (You can't do Alt+Tab etc)


      • setxkbmap should have worked too with setxkbmap -option Meta_L:ISO_Level3_Shift but it apparently does nothing. When tested with xev it does change the input key but it's something different from ISO_Level3_Shift







      share|improve this answer


























        0












        0








        0







        I've come to the conclusion after hours of trying that it is not possible with Autokey, xmodmap or setxkbmap to copy AltGr to Alt_L and Shift_L.




        • Autokey doesn't allow a shortcut like Alt+Shift, since it also needs another character. Alt, Shift, Control... only count as combinations with other keys and they won't work by themselves


        • xmodmap should have worked with xmodmap -e "keysym Meta_L = ISO_Level3_Shift" but it only assigns the function to Alt_L, Shift_L does something similar, typing different special characters. Besides, when this is activated, these keys will only work for that purpose (You can't do Alt+Tab etc)


        • setxkbmap should have worked too with setxkbmap -option Meta_L:ISO_Level3_Shift but it apparently does nothing. When tested with xev it does change the input key but it's something different from ISO_Level3_Shift







        share|improve this answer













        I've come to the conclusion after hours of trying that it is not possible with Autokey, xmodmap or setxkbmap to copy AltGr to Alt_L and Shift_L.




        • Autokey doesn't allow a shortcut like Alt+Shift, since it also needs another character. Alt, Shift, Control... only count as combinations with other keys and they won't work by themselves


        • xmodmap should have worked with xmodmap -e "keysym Meta_L = ISO_Level3_Shift" but it only assigns the function to Alt_L, Shift_L does something similar, typing different special characters. Besides, when this is activated, these keys will only work for that purpose (You can't do Alt+Tab etc)


        • setxkbmap should have worked too with setxkbmap -option Meta_L:ISO_Level3_Shift but it apparently does nothing. When tested with xev it does change the input key but it's something different from ISO_Level3_Shift








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 6 at 21:25









        glow008glow008

        12




        12






























            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%2f1402800%2fhow-to-make-altshift-act-like-altgr-with-xmodmap%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

            Aardman Animations

            Are they similar matrix

            “minimization” problem in Euclidean space related to orthonormal basis