Comment 4 for bug 879838

Revision history for this message
Joshua Hopp (joshuahopp) wrote :

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)" };
  };