linux 에서 apple aluminum keyboard 의 F13-F19 인식시키기
Computing 2011. 3. 14. 23:57Here, I am going to show you how to make your ubuntu machine to recognize F13 through F19 of Apple's aluminnm keyboard.
First of all, you need to find out key codes of F13 to F19 using 'xev'.
Secondly, you'll need 'xmodmap' to map each of function keys to an appropriate symbol.
For example, the keycode of F15 key is 193. It is not assigned to a meaningful symbol. So you are going to map it by typing in following command in your terminal:
xmodmap -e 'keycode 193 = F15'
You'll need to do the same thing for F13, F14, F16, ... , F19.
It would be great inconvenience if you had to do this every time you log on to your ubuntu machine.
Fortunately, you can save your xmodmap configuration in .Xmodmap file in your home directory and your ubuntu machine will load the file when you log on to your computer.
For folks who are not willing to bother finding out key codes of all function keys, here goes my .Xmodmap file:
keycode 191 = F13
keycode 192 = F14
keycode 193 = F15
keycode 194 = F16
keycode 195 = F17
keycode 196 = F18
keycode 197 = F19
Have fun with your apple aluminum keyboard!
----
xev 를 이용해서 F13-F19 의 키코드를 알아낸다.
man xmodmap 을 해서 xmodmap 의 사용법을 알아낸다.
적절한 symbol 로 매핑시켜 준다.
예제) xmodmap -e 'keycode 193 = F15'
매번 설정하기 귀찮으면 ${HOME}/.Xmodmap 에 적어 둔다.
내 .Xmodmap 파일:
keycode 191 = F13
keycode 192 = F14
keycode 193 = F15
keycode 194 = F16
keycode 195 = F17
keycode 196 = F18
keycode 197 = F19
관련 포스팅 : http://orchistro.tistory.com/72