티스토리 뷰

$ xinput list

명령으로 연결된 장치의 아이디 확인

 

$ xinput get-button-map <device id | "장치명"> 

명령으로 해당 장치의 버튼에 관한 설정 사항을 확인 할 수 있음

 

$ xinput test <device id | "장치명">

명령으로 해당 장치의 버튼 아이디를 확인 할 수 있음

 

$ xinput set-button-map <device id | "장치명"> 1 8 3 4 5 6 7 9

버튼 맵을 재설정하여 "우상단: 이전페이지, 좌상단: 다음페이지"로 설정함

 

설정은 저장되지 않으므로, 부팅시 적용을 위해

~/.xsessionrc  파일에 아래의 명령을 저장

 

xinput set-button-map "장치명" 1 8 3 4 5 6 7 9

 

-> 장치명을 사용하면 별도의 파싱작업- device_id=$(xinput | grep "장치명" | awk '{print substr($7,4,2)}') 와 같은 -없이 사용 가능하다.

 

* 참고

버튼맵에 관한 사항 - https://wiki.mbirth.de/know-how/software/linux/remapping-mouse-buttons.html

 

Remapping mouse buttons :: wiki.mbirth.de

permanently To remap mouse buttons permanently, you can use the xinput set-button-map command. Every mouse button click issues a button click with a specific id to X11. X11 recognizes the following buttons: ID Button 1 Left click 2 Middle click 3 Right cli

wiki.mbirth.de

Thumb1 - 이전 페이지

Thumb2 - 다음 페이지

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함