Change keyboard layout when using a keyboard or other












2















Well, I was deep reading into setxkbmap options and changing layouts posts, but I don't find what I need. The problems is the following:



I have a laptop running Fedora 23 Cinnamon Spin, the laptop use es_latam layout, but in the office I use an USB keyboard with es_ES layout. I have both layouts configured in the OS, but I have to change it manually.



The question is:
Is there a way to detect what keyboard I'm using and set the keyboard automatically according to this ?










share|improve this question





























    2















    Well, I was deep reading into setxkbmap options and changing layouts posts, but I don't find what I need. The problems is the following:



    I have a laptop running Fedora 23 Cinnamon Spin, the laptop use es_latam layout, but in the office I use an USB keyboard with es_ES layout. I have both layouts configured in the OS, but I have to change it manually.



    The question is:
    Is there a way to detect what keyboard I'm using and set the keyboard automatically according to this ?










    share|improve this question



























      2












      2








      2


      1






      Well, I was deep reading into setxkbmap options and changing layouts posts, but I don't find what I need. The problems is the following:



      I have a laptop running Fedora 23 Cinnamon Spin, the laptop use es_latam layout, but in the office I use an USB keyboard with es_ES layout. I have both layouts configured in the OS, but I have to change it manually.



      The question is:
      Is there a way to detect what keyboard I'm using and set the keyboard automatically according to this ?










      share|improve this question
















      Well, I was deep reading into setxkbmap options and changing layouts posts, but I don't find what I need. The problems is the following:



      I have a laptop running Fedora 23 Cinnamon Spin, the laptop use es_latam layout, but in the office I use an USB keyboard with es_ES layout. I have both layouts configured in the OS, but I have to change it manually.



      The question is:
      Is there a way to detect what keyboard I'm using and set the keyboard automatically according to this ?







      linux x11 keyboard keyboard-layout






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 13 '16 at 12:57









      carpinchosaurio

      231111




      231111










      asked Jan 25 '16 at 16:07









      X3MBoyX3MBoy

      304115




      304115






















          1 Answer
          1






          active

          oldest

          votes


















          0














          How about a shortcut in tray ?



          Keyboard layout Indicator



          Command line solution:



          System-wide locale settings are stored in the /etc/locale.conf file, which is read at early boot by the system daemon



          To show the current settings, use the status option:



          localectl status


          you might see a result like this



          ~]$ localectl status
          System Locale: LANG=en_US.UTF-8
          VC Keymap: us
          X11 Layout: n/a



          • list keymaps: localectl list-keymaps


          • change console keymap: localectl set-keymap jp106


          • change x11 keymap: localectl set-x11-keymap us



          if you want to set British English as your default locale, first find the name of this locale by using list-locales. Then, as root, type the command in the following form



          localectl set-locale LANG=en_GB.utf8





          share|improve this answer


























          • The best approach i found was with the cinnamon keyboard options, where there is an option to change keyboard distribution with a key. I personally use the scroll lock button (because i don't use it to anything else). In the System Configuration -> Keyboard (Hardware Section) the tab "Layouts" have an "Options" buttons, and the "Change Layout" option is there. Sorry if i'm mistaken with the names, but my Fedora is in Spanish.

            – X3MBoy
            Mar 8 '16 at 12:47











          • Glad to see that your issue got resolved.

            – Raju
            Mar 8 '16 at 12:50











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f257553%2fchange-keyboard-layout-when-using-a-keyboard-or-other%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














          How about a shortcut in tray ?



          Keyboard layout Indicator



          Command line solution:



          System-wide locale settings are stored in the /etc/locale.conf file, which is read at early boot by the system daemon



          To show the current settings, use the status option:



          localectl status


          you might see a result like this



          ~]$ localectl status
          System Locale: LANG=en_US.UTF-8
          VC Keymap: us
          X11 Layout: n/a



          • list keymaps: localectl list-keymaps


          • change console keymap: localectl set-keymap jp106


          • change x11 keymap: localectl set-x11-keymap us



          if you want to set British English as your default locale, first find the name of this locale by using list-locales. Then, as root, type the command in the following form



          localectl set-locale LANG=en_GB.utf8





          share|improve this answer


























          • The best approach i found was with the cinnamon keyboard options, where there is an option to change keyboard distribution with a key. I personally use the scroll lock button (because i don't use it to anything else). In the System Configuration -> Keyboard (Hardware Section) the tab "Layouts" have an "Options" buttons, and the "Change Layout" option is there. Sorry if i'm mistaken with the names, but my Fedora is in Spanish.

            – X3MBoy
            Mar 8 '16 at 12:47











          • Glad to see that your issue got resolved.

            – Raju
            Mar 8 '16 at 12:50
















          0














          How about a shortcut in tray ?



          Keyboard layout Indicator



          Command line solution:



          System-wide locale settings are stored in the /etc/locale.conf file, which is read at early boot by the system daemon



          To show the current settings, use the status option:



          localectl status


          you might see a result like this



          ~]$ localectl status
          System Locale: LANG=en_US.UTF-8
          VC Keymap: us
          X11 Layout: n/a



          • list keymaps: localectl list-keymaps


          • change console keymap: localectl set-keymap jp106


          • change x11 keymap: localectl set-x11-keymap us



          if you want to set British English as your default locale, first find the name of this locale by using list-locales. Then, as root, type the command in the following form



          localectl set-locale LANG=en_GB.utf8





          share|improve this answer


























          • The best approach i found was with the cinnamon keyboard options, where there is an option to change keyboard distribution with a key. I personally use the scroll lock button (because i don't use it to anything else). In the System Configuration -> Keyboard (Hardware Section) the tab "Layouts" have an "Options" buttons, and the "Change Layout" option is there. Sorry if i'm mistaken with the names, but my Fedora is in Spanish.

            – X3MBoy
            Mar 8 '16 at 12:47











          • Glad to see that your issue got resolved.

            – Raju
            Mar 8 '16 at 12:50














          0












          0








          0







          How about a shortcut in tray ?



          Keyboard layout Indicator



          Command line solution:



          System-wide locale settings are stored in the /etc/locale.conf file, which is read at early boot by the system daemon



          To show the current settings, use the status option:



          localectl status


          you might see a result like this



          ~]$ localectl status
          System Locale: LANG=en_US.UTF-8
          VC Keymap: us
          X11 Layout: n/a



          • list keymaps: localectl list-keymaps


          • change console keymap: localectl set-keymap jp106


          • change x11 keymap: localectl set-x11-keymap us



          if you want to set British English as your default locale, first find the name of this locale by using list-locales. Then, as root, type the command in the following form



          localectl set-locale LANG=en_GB.utf8





          share|improve this answer















          How about a shortcut in tray ?



          Keyboard layout Indicator



          Command line solution:



          System-wide locale settings are stored in the /etc/locale.conf file, which is read at early boot by the system daemon



          To show the current settings, use the status option:



          localectl status


          you might see a result like this



          ~]$ localectl status
          System Locale: LANG=en_US.UTF-8
          VC Keymap: us
          X11 Layout: n/a



          • list keymaps: localectl list-keymaps


          • change console keymap: localectl set-keymap jp106


          • change x11 keymap: localectl set-x11-keymap us



          if you want to set British English as your default locale, first find the name of this locale by using list-locales. Then, as root, type the command in the following form



          localectl set-locale LANG=en_GB.utf8






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 24 '16 at 23:37

























          answered Feb 24 '16 at 23:06









          RajuRaju

          1732211




          1732211













          • The best approach i found was with the cinnamon keyboard options, where there is an option to change keyboard distribution with a key. I personally use the scroll lock button (because i don't use it to anything else). In the System Configuration -> Keyboard (Hardware Section) the tab "Layouts" have an "Options" buttons, and the "Change Layout" option is there. Sorry if i'm mistaken with the names, but my Fedora is in Spanish.

            – X3MBoy
            Mar 8 '16 at 12:47











          • Glad to see that your issue got resolved.

            – Raju
            Mar 8 '16 at 12:50



















          • The best approach i found was with the cinnamon keyboard options, where there is an option to change keyboard distribution with a key. I personally use the scroll lock button (because i don't use it to anything else). In the System Configuration -> Keyboard (Hardware Section) the tab "Layouts" have an "Options" buttons, and the "Change Layout" option is there. Sorry if i'm mistaken with the names, but my Fedora is in Spanish.

            – X3MBoy
            Mar 8 '16 at 12:47











          • Glad to see that your issue got resolved.

            – Raju
            Mar 8 '16 at 12:50

















          The best approach i found was with the cinnamon keyboard options, where there is an option to change keyboard distribution with a key. I personally use the scroll lock button (because i don't use it to anything else). In the System Configuration -> Keyboard (Hardware Section) the tab "Layouts" have an "Options" buttons, and the "Change Layout" option is there. Sorry if i'm mistaken with the names, but my Fedora is in Spanish.

          – X3MBoy
          Mar 8 '16 at 12:47





          The best approach i found was with the cinnamon keyboard options, where there is an option to change keyboard distribution with a key. I personally use the scroll lock button (because i don't use it to anything else). In the System Configuration -> Keyboard (Hardware Section) the tab "Layouts" have an "Options" buttons, and the "Change Layout" option is there. Sorry if i'm mistaken with the names, but my Fedora is in Spanish.

          – X3MBoy
          Mar 8 '16 at 12:47













          Glad to see that your issue got resolved.

          – Raju
          Mar 8 '16 at 12:50





          Glad to see that your issue got resolved.

          – Raju
          Mar 8 '16 at 12:50


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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%2funix.stackexchange.com%2fquestions%2f257553%2fchange-keyboard-layout-when-using-a-keyboard-or-other%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

          How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

          is 'sed' thread safe

          How to make a Squid Proxy server?