※ Ubuntu 에서는 /usr/share/X11/xkb/symbols/kr 에 이미 정의되어 있음partial function_keys
xkb_symbols "ralt_hangul" {
replace key <RALT> {
type[Group1] = "ONE_LEVEL",
symbols[Group1]= [ Hangul ]
};
};
partial function_keys
xkb_symbols "rctrl_hangul" {
replace key <RCTL> {
type[Group1] = "ONE_LEVEL",
symbols[Group1]= [ Hangul ]
};
};
partial function_keys
xkb_symbols "ralt_hanja" {
replace key <RALT> {
type[Group1] = "ONE_LEVEL",
symbols[Group1]= [ Hangul_Hanja ]
};
};
partial function_keys
xkb_symbols "rctrl_hanja" {
replace key <RCTL> {
type[Group1] = "ONE_LEVEL",
symbols[Group1]= [ Hangul_Hanja ]
};
};
2. 키 매핑 설정
※ 여기서는 /usr/local/etc/.xkbcompusr.xkb 파일에 저장
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+inet(evdev)+terminate(ctrl_alt_bksp)+kr(ralt_hangul)+kr(rctrl_hanja)" };
xkb_geometry { include "pc(pc105)" };
};
3. 시작시 매번 로딩
xkbcomp /usr/local/etc/.xkbcompusr.xkb $DISPLAY
0 개의 댓글:
댓글 쓰기