"asciitilde 레이아웃 모드"에서 키보드를 다시 매핑하는 방법

"asciitilde 레이아웃 모드"에서 키보드를 다시 매핑하는 방법

xmodmap -e현재 키보드를 다시 매핑하기 위해 이 기능을 사용하려고 합니다 . 활성화된 asciilde 모드로 twosuperior키를 교체 greater하고 이에 의존 하고 싶습니다 .less

나는 asciitildeor grave모드를 참고하여 이야기한다.이 협약

"무덤 모드 레이아웃"과 "ASCIITILDE 모드 레이아웃"에 대해 동일한 키코드를 검색하므로 "ASCIITILDE 모드 레이아웃"을 어떻게 다시 매핑하는지 궁금합니다.

다음은 프로세스를 통해 검색한 내용입니다 xev.

// retrieving less
keycode 94 (keysym 0x3c, less)"<" 

// passing in asciitilde layout mode
keycode 50 (keysym 0xffe1, Shift_L),

// retrieving greater with asciitilde mode activated
keycode 94 (keysym 0x3e, greater)">"

 ------------------

// retrieving the code of twosuperior key 
keycode 49 (keysym 0xb2, twosuperior) "²"


// passing in asciitilde layout mode activated
keycode 50 (keysym 0xffe1, Shift_L)

// retrieving the code of twosuperior key with asciitilde being activated  
keycode 49 (keysym 0x0, NoSymbol)

보시다시피 저는 동일한 키코드를 검색합니다.무덤 레이아웃 모드그리고asciilde 레이아웃 모드.

어떻게 변경하나요?asciilde 레이아웃 키 맵?

감사해요

답변1

사실 그것은 매우 간단합니다.

첫 번째 인수는 "소문자 모드 레이아웃"을 참조하고 두 번째 인수는 "대문자 모드 레이아웃"을 참조하므로 코드 구문은 다음과 같습니다.

xmodmap -e "keycode [keycode_number] = grave_mode_argument asciitilde_mode_argument" 

따라서 우리의 경우 기호 대신 less및 기호를 넣으려면 다음 코드를 실행하면 됩니다.greatertwosuperior

xmodmap -e "keycode 49 = less greater"

또한 를 사용하여 키코드 번호를 검색할 수 있습니다 [xev process][1].

관련 정보