Using mode_switch and super together in xkb

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











up vote
0
down vote

favorite












I'm using xkb to create a layer on my keyboard with a navigation cluster, accessible by holding down a modifier key. Here's a simplified version of my xkb config file:



xkb_keymap 
xkb_keycodes include "evdev+aliases(qwerty)" ;
xkb_types include "complete" ;
xkb_compat include "complete" ;

xkb_symbols

include "pc+us+inet(evdev)"

key <LWIN> [ Super_L, Super_L ], [ Super_L, Super_L ] ;
key <RALT> [ Mode_switch ] ;

key <BKSP> [ BackSpace, BackSpace ], [ Prior, Prior ] ;
key <BKSL> [ backslash, bar ], [ Next, Next ] ;

;

;


So right Alt is mapped to Mode_switch, and pressing that lets me access Page Up (="Prior") and Page Down (="Next") from the backspace and backslash buttons.



These work fine on their own, but I also want to use the Super modifier (the windows button) in combination with PgUp/PgDn (that key combination is set to cycle workspaces in my window manager), and that does not work.



If I press the windows button and the actual Page Up button then it switches workspaces as desired. If I press the windows button, right Alt and backspace, that ought to be equivalent to Win-PgUp, but it doesn't seem to register anything at all.



Question:
How can I get xkb to respect the windows key/super modifer in combination with keys that I'm accessing via Mode_switch?







share|improve this question

























    up vote
    0
    down vote

    favorite












    I'm using xkb to create a layer on my keyboard with a navigation cluster, accessible by holding down a modifier key. Here's a simplified version of my xkb config file:



    xkb_keymap 
    xkb_keycodes include "evdev+aliases(qwerty)" ;
    xkb_types include "complete" ;
    xkb_compat include "complete" ;

    xkb_symbols

    include "pc+us+inet(evdev)"

    key <LWIN> [ Super_L, Super_L ], [ Super_L, Super_L ] ;
    key <RALT> [ Mode_switch ] ;

    key <BKSP> [ BackSpace, BackSpace ], [ Prior, Prior ] ;
    key <BKSL> [ backslash, bar ], [ Next, Next ] ;

    ;

    ;


    So right Alt is mapped to Mode_switch, and pressing that lets me access Page Up (="Prior") and Page Down (="Next") from the backspace and backslash buttons.



    These work fine on their own, but I also want to use the Super modifier (the windows button) in combination with PgUp/PgDn (that key combination is set to cycle workspaces in my window manager), and that does not work.



    If I press the windows button and the actual Page Up button then it switches workspaces as desired. If I press the windows button, right Alt and backspace, that ought to be equivalent to Win-PgUp, but it doesn't seem to register anything at all.



    Question:
    How can I get xkb to respect the windows key/super modifer in combination with keys that I'm accessing via Mode_switch?







    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm using xkb to create a layer on my keyboard with a navigation cluster, accessible by holding down a modifier key. Here's a simplified version of my xkb config file:



      xkb_keymap 
      xkb_keycodes include "evdev+aliases(qwerty)" ;
      xkb_types include "complete" ;
      xkb_compat include "complete" ;

      xkb_symbols

      include "pc+us+inet(evdev)"

      key <LWIN> [ Super_L, Super_L ], [ Super_L, Super_L ] ;
      key <RALT> [ Mode_switch ] ;

      key <BKSP> [ BackSpace, BackSpace ], [ Prior, Prior ] ;
      key <BKSL> [ backslash, bar ], [ Next, Next ] ;

      ;

      ;


      So right Alt is mapped to Mode_switch, and pressing that lets me access Page Up (="Prior") and Page Down (="Next") from the backspace and backslash buttons.



      These work fine on their own, but I also want to use the Super modifier (the windows button) in combination with PgUp/PgDn (that key combination is set to cycle workspaces in my window manager), and that does not work.



      If I press the windows button and the actual Page Up button then it switches workspaces as desired. If I press the windows button, right Alt and backspace, that ought to be equivalent to Win-PgUp, but it doesn't seem to register anything at all.



      Question:
      How can I get xkb to respect the windows key/super modifer in combination with keys that I'm accessing via Mode_switch?







      share|improve this question













      I'm using xkb to create a layer on my keyboard with a navigation cluster, accessible by holding down a modifier key. Here's a simplified version of my xkb config file:



      xkb_keymap 
      xkb_keycodes include "evdev+aliases(qwerty)" ;
      xkb_types include "complete" ;
      xkb_compat include "complete" ;

      xkb_symbols

      include "pc+us+inet(evdev)"

      key <LWIN> [ Super_L, Super_L ], [ Super_L, Super_L ] ;
      key <RALT> [ Mode_switch ] ;

      key <BKSP> [ BackSpace, BackSpace ], [ Prior, Prior ] ;
      key <BKSL> [ backslash, bar ], [ Next, Next ] ;

      ;

      ;


      So right Alt is mapped to Mode_switch, and pressing that lets me access Page Up (="Prior") and Page Down (="Next") from the backspace and backslash buttons.



      These work fine on their own, but I also want to use the Super modifier (the windows button) in combination with PgUp/PgDn (that key combination is set to cycle workspaces in my window manager), and that does not work.



      If I press the windows button and the actual Page Up button then it switches workspaces as desired. If I press the windows button, right Alt and backspace, that ought to be equivalent to Win-PgUp, but it doesn't seem to register anything at all.



      Question:
      How can I get xkb to respect the windows key/super modifer in combination with keys that I'm accessing via Mode_switch?









      share|improve this question












      share|improve this question




      share|improve this question








      edited Apr 19 at 12:01
























      asked Apr 19 at 10:28









      Hives

      13




      13

























          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%2f438690%2fusing-mode-switch-and-super-together-in-xkb%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%2f438690%2fusing-mode-switch-and-super-together-in-xkb%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?