Definindo Mod4 em awesome

4

Estou tentando criar algo incrível. Quando eu inicio a tecla Mod4 (Windows) não está funcionando. Então eu tentei extender meu .Xmodmap

clear Mod4
add Mod4 = Multi_key

Quando executo xmodmap .Xmodmap , o Mod4 funciona, mas ainda resta "alguns". Se houver um terminal aberto e eu pressionar Mod4 + Ret para abrir um novo terminal, o computador emite algum sinal sonoro ou no terminal antigo há alguma chave inativa uma). Eu tentei várias regras clear no .Xmodmap , mas não funcionou. Como posso habilitar melhor o Mod4 ?

xev relatórios:

KeyPress event, serial 33, synthetic NO, window 0x1200001,
    root 0x13c, subw 0x0, time 36080759, (-557,202), root:(187,223),
    state 0x0, keycode 133 (keysym 0xff20, Multi_key), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: True

KeyRelease event, serial 33, synthetic NO, window 0x1200001,
    root 0x13c, subw 0x0, time 36080859, (-557,202), root:(187,223),
    state 0x0, keycode 133 (keysym 0xff20, Multi_key), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
    
por qbi 09.01.2013 / 00:05

1 resposta

2

A FAQ incrível fornece um answer :

Why does Mod4 "swallow" succeeding key presses?
On some systems xkb by default maps the left windows key to "Multi_key" (at least in us and de layouts). Multi_key is an xkb feature which may be used to access uncommon symbols by pressing Multi_key and then (consecutively) two "normal" keys. The solution is to remap your windows key to mod4 and remove the Multi_key mapping. This can be done by including "altwin(left_meta_win)" in the xkb keyboard description xkb_symbols line.

   #!/bin/bash
   xkbcomp - $DISPLAY<<EOF
   xkb_keymap {
   xkb_keycodes  { include "evdev+aliases(qwertz)"};
   xkb_types     { include "complete"};
   xkb_compat    { include "complete"};
   xkb_symbols   { include "pc+de(nodeadkeys)+inet(evdev)+group(alt_shift_toggle)+level3(ralt_switch)+altwin(left_meta_win)+capslock(escape)"    };
   xkb_geometry  { include "pc(pc104)"};
   };
   EOF
    
por 14.01.2013 / 22:06