How can I configure xkb to switch layouts both ways?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












If I run setxkbmap -layout us,us -variant altgr-intl,colemak -option grp:alt_space_toggle, I can switch from the AltGr-International layout to Colemak by pressing Alt+Space. But it doesn't work the other way around, i.e. I can't switch from Colemak to AltGr-International with Alt-Space. I've also tried running setxkbmap -layout us,us -variant altgr-intl,colemak -option grp:alt_space_toggle,grp:alt_space_toggle, but that doesn't seem to work, either. How can I configure XKB so that Alt+Space works in both directions?



I'm on NixOS, if that makes any difference.










share|improve this question

























    up vote
    0
    down vote

    favorite












    If I run setxkbmap -layout us,us -variant altgr-intl,colemak -option grp:alt_space_toggle, I can switch from the AltGr-International layout to Colemak by pressing Alt+Space. But it doesn't work the other way around, i.e. I can't switch from Colemak to AltGr-International with Alt-Space. I've also tried running setxkbmap -layout us,us -variant altgr-intl,colemak -option grp:alt_space_toggle,grp:alt_space_toggle, but that doesn't seem to work, either. How can I configure XKB so that Alt+Space works in both directions?



    I'm on NixOS, if that makes any difference.










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      If I run setxkbmap -layout us,us -variant altgr-intl,colemak -option grp:alt_space_toggle, I can switch from the AltGr-International layout to Colemak by pressing Alt+Space. But it doesn't work the other way around, i.e. I can't switch from Colemak to AltGr-International with Alt-Space. I've also tried running setxkbmap -layout us,us -variant altgr-intl,colemak -option grp:alt_space_toggle,grp:alt_space_toggle, but that doesn't seem to work, either. How can I configure XKB so that Alt+Space works in both directions?



      I'm on NixOS, if that makes any difference.










      share|improve this question













      If I run setxkbmap -layout us,us -variant altgr-intl,colemak -option grp:alt_space_toggle, I can switch from the AltGr-International layout to Colemak by pressing Alt+Space. But it doesn't work the other way around, i.e. I can't switch from Colemak to AltGr-International with Alt-Space. I've also tried running setxkbmap -layout us,us -variant altgr-intl,colemak -option grp:alt_space_toggle,grp:alt_space_toggle, but that doesn't seem to work, either. How can I configure XKB so that Alt+Space works in both directions?



      I'm on NixOS, if that makes any difference.







      keyboard-layout xkb nixos






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 31 at 1:13









      Jon

      2063624




      2063624

























          active

          oldest

          votes











          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f465892%2fhow-can-i-configure-xkb-to-switch-layouts-both-ways%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f465892%2fhow-can-i-configure-xkb-to-switch-layouts-both-ways%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)