My current workaround is to bypass the gnome keyboard layout as follows:

Use the following shell script as an autostart script:
  #!/bin/bash
  function start_neo ()
  {
        ~/neo/init_layout.sh
  }
  
  start_neo
  # prevent gnome from switching back to their keyboard layout:
  sleep 2 && start_neo
  sleep 5 && start_neo
  sleep 5 && start_neo
  sleep 20 && start_neo

~/neo/init_layout.sh contains:
  #!/bin/bash
  xkbcomp ~/neo/my.xkb :0
  xset -r 51 && xset -r 94 # also fix mod repeat

~/neo/my.xkb contains:
  xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwertz)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include 
"complete+caps(caps_lock):2+misc(assign_shift_left_action):2+level5(level5_lock):2+ledscroll(group_lock)"
       };
        xkb_symbols   {
                include 
"pc+de(nodeadkeys):1+de(neo):2+inet(evdev)+group(sclk_toggle)+compose(rwin):1"
        };
        xkb_geometry  { include "pc(pc105)"     };
  };

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/879838

Title:
  Keyboard Layout "Germany Neo 2": Mod4 does not work if used as
  secondary keyboard layout

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xkeyboard-config/+bug/879838/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to