Portál AbcLinuxu, 26. dubna 2024 19:51
KeyPress event, serial 32, synthetic NO, window 0x3c00001, root 0x48, subw 0x0, time 10670902, (366,310), root:(369,339), state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 32, synthetic NO, window 0x3c00001, root 0x48, subw 0x0, time 10671299, (366,310), root:(369,339), state 0x4, keycode 34 (keysym 0xfa, uacute), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 2 bytes: (c3 ba) "ú" XFilterEvent returns: False KeyRelease event, serial 32, synthetic NO, window 0x3c00001, root 0x48, subw 0x0, time 10671532, (366,310), root:(369,339), state 0x4, keycode 34 (keysym 0xfa, uacute), same_screen YES, XLookupString gives 0 bytes: KeyRelease event, serial 32, synthetic NO, window 0x3c00001, root 0x48, subw 0x0, time 10671965, (366,310), root:(369,339), state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES, XLookupString gives 0 bytes:Zatímco, třeba v US layoutu se děje tohle:
KeyPress event, serial 27, synthetic NO, window 0x4000001, root 0x48, subw 0x0, time 14494438, (-175,-7), root:(1013,811), state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 30, synthetic NO, window 0x4000001, root 0x48, subw 0x0, time 14496105, (-175,-7), root:(1013,811), state 0x4, keycode 34 (keysym 0x5b, bracketleft), same_screen YES, XLookupString gives 1 bytes: (1b) " XmbLookupString gives 1 bytes: (1b) " XFilterEvent returns: False KeyRelease event, serial 30, synthetic NO, window 0x4000001, root 0x48, subw 0x0, time 14496302, (-175,-7), root:(1013,811), state 0x4, keycode 34 (keysym 0x5b, bracketleft), same_screen YES, XLookupString gives 1 bytes: (1b) " KeyRelease event, serial 30, synthetic NO, window 0x4000001, root 0x48, subw 0x0, time 14496608, (-175,-7), root:(1013,811), state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES, XLookupString gives 0 bytes:Přijde, mi, že problém je v tom, XLookupString pro českou klávesnici nejspíš bere jako vstup keysym a nikoliv keycode (což bych potřeboval), takže pak hledá <Ctrl-ú> místo <Ctrl-[> a to nenajde. A naopak, když stisknu <Ctrl-AltGr-F> tak to udělá <ESC>, což ale není použitelné. Bohužel jsem v tomhle laik, a netuším, kam co dopsat, aby to chodilo tak jak chci. Může mi někdo poradit?
interpret
, ale tak daleko jsem se ve studiu XKB nedostal.
setxkbmap -symbols 'czsk(us_cz_qwertz)'by mělo umět češtinu i ^[ (důkazem budiž, že tenhle příspěvek ve vimu dopíšu ), jak je to s AltGr nevím, moc se v xkb nevyznám (používám tu Yetiho mapu a nějak to neřeším).
setxkbmap -symbols 'czsk(us_cz_qwertz)'ale to bohužel není ono. Sice to má češtinu, ale takovou napolovic, nepíše to znaky přes AltGr (jako [], {} atd.) :(.
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.