안녕하세요! 컴퓨터를 전공하는 대학생 개발자입니다.


키매덕분에 맥 + 레오폴드 660C 조합에 입문하게 됐습니다.


맥에서 미니배열 키보드를 쓸때 화면밝기, 미디어 플레이어 컨트롤(이전 곡 , 일시정지, 다음 곡), 그리고 음량조절을 더 편하게 쓰기위해서


알아보던 중에 Karabiner이라는 맥 프로그램을 알게됐습니다.


근데 68키이다 보니 단순히 키 맵핑하는것 이상의 키 조합을 새로 만들어야했는데 


complex-rule은 json 형식의 데이터를 추가하는 복잡함이 있어서 전공을 살려서 기능을 추가했고


키매 분들께 공유해드리고자 합니당



Mac에 Karabiner이 먼저 설치되어야 하구요


터미널 키고


ls ~/.config/karabiner/karabiner.json 을 하면 창이 뜹니다.


코드 시작 부분 중에서 complex_modifications 밑에 rules부분을


"rules": [
             {
"description":"control_fn_to_media_control",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "f1",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code":"display_brightness_decrement"
}
]
},
{
"type": "basic",
"from": {
"key_code": "f2",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code":"display_brightness_increment"
}
]
},
{
"type": "basic",
"from": {
"key_code": "f3",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code":"rewind"
}
]
},
{
"type": "basic",
"from": {
"key_code": "f4",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code":"play_or_pause"
}
]
},
{
"type": "basic",
"from": {
"key_code": "f5",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code":"fastforward"
}
]
},
{
"type": "basic",
"from": {
"key_code": "f10",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code":"mute"
}
]
},
{
"type": "basic",
"from": {
"key_code": "f11",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code":"volume_decrement"
}
]
},
{
"type": "basic",
"from": {
"key_code": "f12",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code":"volume_increment"
}
]
}
]
}
     ]
},

이렇게 추가해주시면 됩니다. 다른 기능 원하시면 저 포맷에서 수정하시면 되구요!


여기에 고수분들이 많이 계셔서 어쩌면 이미 알고계실수도 있지만


도움이 되길 바라며 정보 공유합니다!


맥북 터치바에서는 Karabiner에서 가끔씩 fn키가 안먹는 버그가 있습니다.


이때는 잠자기-깨우기 하시면 정상적을 동작합니다!



질문사항 있으면 댓글 남겨주세요~