티스토리 뷰
$ 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 - 다음 페이지
'Linux' 카테고리의 다른 글
playonlinux 설치하기(OneNote 설치) (0) | 2019.08.12 |
---|---|
diff와 patch 사용 (0) | 2019.08.08 |
Linux / Windows 멀티 부팅시 시간 불일치 문제 해결방법 (0) | 2019.08.08 |
elementaryOS Apps and Configs (0) | 2019.08.02 |
[ElementaryOS]싱글 클릭을 더블 클릭으로 바꾸기 (0) | 2019.07.31 |