Why does “setxkbmap de” not have an effect in a terminal?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















When I try to change my keyboard layout in Ubuntu in a terminal with setxkbmap de, it does not change the layout in the terminal. Yet it changes the layout in other X applications.



I don't understand why this is. I assumed that the keyboard layout is used globally.



Is there a way to change the keyboard layout in the terminal as well?










share|improve this question


















  • 1





    Try to use the keyboard shortcut for switching layout instead of the setxkbmap command. The default shortcut is <Super>+<Space>.

    – Gunnar Hjalmarsson
    Feb 7 '18 at 1:50


















0















When I try to change my keyboard layout in Ubuntu in a terminal with setxkbmap de, it does not change the layout in the terminal. Yet it changes the layout in other X applications.



I don't understand why this is. I assumed that the keyboard layout is used globally.



Is there a way to change the keyboard layout in the terminal as well?










share|improve this question


















  • 1





    Try to use the keyboard shortcut for switching layout instead of the setxkbmap command. The default shortcut is <Super>+<Space>.

    – Gunnar Hjalmarsson
    Feb 7 '18 at 1:50














0












0








0








When I try to change my keyboard layout in Ubuntu in a terminal with setxkbmap de, it does not change the layout in the terminal. Yet it changes the layout in other X applications.



I don't understand why this is. I assumed that the keyboard layout is used globally.



Is there a way to change the keyboard layout in the terminal as well?










share|improve this question














When I try to change my keyboard layout in Ubuntu in a terminal with setxkbmap de, it does not change the layout in the terminal. Yet it changes the layout in other X applications.



I don't understand why this is. I assumed that the keyboard layout is used globally.



Is there a way to change the keyboard layout in the terminal as well?







command-line keyboard-layout xkb






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 6 '18 at 18:14









René NyffeneggerRené Nyffenegger

11218




11218








  • 1





    Try to use the keyboard shortcut for switching layout instead of the setxkbmap command. The default shortcut is <Super>+<Space>.

    – Gunnar Hjalmarsson
    Feb 7 '18 at 1:50














  • 1





    Try to use the keyboard shortcut for switching layout instead of the setxkbmap command. The default shortcut is <Super>+<Space>.

    – Gunnar Hjalmarsson
    Feb 7 '18 at 1:50








1




1





Try to use the keyboard shortcut for switching layout instead of the setxkbmap command. The default shortcut is <Super>+<Space>.

– Gunnar Hjalmarsson
Feb 7 '18 at 1:50





Try to use the keyboard shortcut for switching layout instead of the setxkbmap command. The default shortcut is <Super>+<Space>.

– Gunnar Hjalmarsson
Feb 7 '18 at 1:50










2 Answers
2






active

oldest

votes


















0














setxkbmap de does work, for example in Lubuntu.



But in standard Ubuntu it will be overwritten by a built-in application, that you can manage via the Settings menu.



Click on the icon with the cog wheel and wrench,



Settings menu - Text entry - button Keyboard settings - tab Typing - button Text entry




  • Add the input source German


and then you will be able to select language for the keyboard with the tray icon on the panel at the top of the screen from En to De






share|improve this answer
























  • This is not very optimal because this would require to use the mouse. Also, I cannot to something like setxkbmap $LG -option caps:swapescape. And I still don't know why the effects are hidden in the terminal.

    – René Nyffenegger
    Feb 6 '18 at 19:06











  • We are not the developers. We only help with the existing Ubuntu and the Ubuntu community flavours (Kubuntu, Lubuntu ... Xubuntu). If you want the developers to modify Ubuntu, you should write a bug report at Launchpad. -- If this is an important issue for you, I suggest that you try Lubuntu.

    – sudodus
    Feb 6 '18 at 19:11





















0














The command you want is:



gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'de')]"



(and if anyone wants Dvorak, add +dvorak after the country code, e.g. us+dvorak or gb+dvorak or de+dvorak.)






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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%2faskubuntu.com%2fquestions%2f1003640%2fwhy-does-setxkbmap-de-not-have-an-effect-in-a-terminal%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    setxkbmap de does work, for example in Lubuntu.



    But in standard Ubuntu it will be overwritten by a built-in application, that you can manage via the Settings menu.



    Click on the icon with the cog wheel and wrench,



    Settings menu - Text entry - button Keyboard settings - tab Typing - button Text entry




    • Add the input source German


    and then you will be able to select language for the keyboard with the tray icon on the panel at the top of the screen from En to De






    share|improve this answer
























    • This is not very optimal because this would require to use the mouse. Also, I cannot to something like setxkbmap $LG -option caps:swapescape. And I still don't know why the effects are hidden in the terminal.

      – René Nyffenegger
      Feb 6 '18 at 19:06











    • We are not the developers. We only help with the existing Ubuntu and the Ubuntu community flavours (Kubuntu, Lubuntu ... Xubuntu). If you want the developers to modify Ubuntu, you should write a bug report at Launchpad. -- If this is an important issue for you, I suggest that you try Lubuntu.

      – sudodus
      Feb 6 '18 at 19:11


















    0














    setxkbmap de does work, for example in Lubuntu.



    But in standard Ubuntu it will be overwritten by a built-in application, that you can manage via the Settings menu.



    Click on the icon with the cog wheel and wrench,



    Settings menu - Text entry - button Keyboard settings - tab Typing - button Text entry




    • Add the input source German


    and then you will be able to select language for the keyboard with the tray icon on the panel at the top of the screen from En to De






    share|improve this answer
























    • This is not very optimal because this would require to use the mouse. Also, I cannot to something like setxkbmap $LG -option caps:swapescape. And I still don't know why the effects are hidden in the terminal.

      – René Nyffenegger
      Feb 6 '18 at 19:06











    • We are not the developers. We only help with the existing Ubuntu and the Ubuntu community flavours (Kubuntu, Lubuntu ... Xubuntu). If you want the developers to modify Ubuntu, you should write a bug report at Launchpad. -- If this is an important issue for you, I suggest that you try Lubuntu.

      – sudodus
      Feb 6 '18 at 19:11
















    0












    0








    0







    setxkbmap de does work, for example in Lubuntu.



    But in standard Ubuntu it will be overwritten by a built-in application, that you can manage via the Settings menu.



    Click on the icon with the cog wheel and wrench,



    Settings menu - Text entry - button Keyboard settings - tab Typing - button Text entry




    • Add the input source German


    and then you will be able to select language for the keyboard with the tray icon on the panel at the top of the screen from En to De






    share|improve this answer













    setxkbmap de does work, for example in Lubuntu.



    But in standard Ubuntu it will be overwritten by a built-in application, that you can manage via the Settings menu.



    Click on the icon with the cog wheel and wrench,



    Settings menu - Text entry - button Keyboard settings - tab Typing - button Text entry




    • Add the input source German


    and then you will be able to select language for the keyboard with the tray icon on the panel at the top of the screen from En to De







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 6 '18 at 18:34









    sudodussudodus

    25.7k33078




    25.7k33078













    • This is not very optimal because this would require to use the mouse. Also, I cannot to something like setxkbmap $LG -option caps:swapescape. And I still don't know why the effects are hidden in the terminal.

      – René Nyffenegger
      Feb 6 '18 at 19:06











    • We are not the developers. We only help with the existing Ubuntu and the Ubuntu community flavours (Kubuntu, Lubuntu ... Xubuntu). If you want the developers to modify Ubuntu, you should write a bug report at Launchpad. -- If this is an important issue for you, I suggest that you try Lubuntu.

      – sudodus
      Feb 6 '18 at 19:11





















    • This is not very optimal because this would require to use the mouse. Also, I cannot to something like setxkbmap $LG -option caps:swapescape. And I still don't know why the effects are hidden in the terminal.

      – René Nyffenegger
      Feb 6 '18 at 19:06











    • We are not the developers. We only help with the existing Ubuntu and the Ubuntu community flavours (Kubuntu, Lubuntu ... Xubuntu). If you want the developers to modify Ubuntu, you should write a bug report at Launchpad. -- If this is an important issue for you, I suggest that you try Lubuntu.

      – sudodus
      Feb 6 '18 at 19:11



















    This is not very optimal because this would require to use the mouse. Also, I cannot to something like setxkbmap $LG -option caps:swapescape. And I still don't know why the effects are hidden in the terminal.

    – René Nyffenegger
    Feb 6 '18 at 19:06





    This is not very optimal because this would require to use the mouse. Also, I cannot to something like setxkbmap $LG -option caps:swapescape. And I still don't know why the effects are hidden in the terminal.

    – René Nyffenegger
    Feb 6 '18 at 19:06













    We are not the developers. We only help with the existing Ubuntu and the Ubuntu community flavours (Kubuntu, Lubuntu ... Xubuntu). If you want the developers to modify Ubuntu, you should write a bug report at Launchpad. -- If this is an important issue for you, I suggest that you try Lubuntu.

    – sudodus
    Feb 6 '18 at 19:11







    We are not the developers. We only help with the existing Ubuntu and the Ubuntu community flavours (Kubuntu, Lubuntu ... Xubuntu). If you want the developers to modify Ubuntu, you should write a bug report at Launchpad. -- If this is an important issue for you, I suggest that you try Lubuntu.

    – sudodus
    Feb 6 '18 at 19:11















    0














    The command you want is:



    gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'de')]"



    (and if anyone wants Dvorak, add +dvorak after the country code, e.g. us+dvorak or gb+dvorak or de+dvorak.)






    share|improve this answer




























      0














      The command you want is:



      gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'de')]"



      (and if anyone wants Dvorak, add +dvorak after the country code, e.g. us+dvorak or gb+dvorak or de+dvorak.)






      share|improve this answer


























        0












        0








        0







        The command you want is:



        gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'de')]"



        (and if anyone wants Dvorak, add +dvorak after the country code, e.g. us+dvorak or gb+dvorak or de+dvorak.)






        share|improve this answer













        The command you want is:



        gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'de')]"



        (and if anyone wants Dvorak, add +dvorak after the country code, e.g. us+dvorak or gb+dvorak or de+dvorak.)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 25 at 13:19









        Silas S. BrownSilas S. Brown

        1




        1






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f1003640%2fwhy-does-setxkbmap-de-not-have-an-effect-in-a-terminal%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

            Category:香港粉麵

            List *all* the tuples!

            Channel [V]