Snippets, ruby block and xkb-switch