Skip to content

Instantly share code, notes, and snippets.

@localghost666
Last active October 30, 2020 15:48
Show Gist options
  • Save localghost666/07ffff63eccbc07de0bd to your computer and use it in GitHub Desktop.
Save localghost666/07ffff63eccbc07de0bd to your computer and use it in GitHub Desktop.
Karabiner setting file for Logitech K360 & M545
<?xml version="1.0"?>
<root>
<!-- Logitech K360 Keyboard -->
<item>
<name>Logitech K360 Keyboard for Mac OS X</name>
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>KEYBOARD_K360</productname>
<productid>0x4004</productid>
</deviceproductdef>
<item>
<name>Modifier Keys can be configured in "System Preferences - Keyboard - Modifier Keys…."</name>
<appendix>Swapping Command and Control is necessary.</appendix>
</item>
<item>
<name>And enable following items:</name>
<appendix>* Change Tab Key - Use Option+Tab as "Switch Application" (Command+Tab)</appendix>
<!-- <appendix>* For Korean</appendix> -->
</item>
<!-- 오른쪽 Alt와 Ctrl을 한/영, 한자에 할당 -->
<item>
<name>Alt_R & Ctrl_R to HanEng & Hanja</name>
<identifier>private.alrRnCtrlR</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::KEYBOARD_K360</device_only>
<autogen>
__KeyToKey__
KeyCode::OPTION_R,
KeyCode::SPACE, ModifierFlag::CONTROL_L, Option::NOREPEAT
</autogen>
<autogen>
__KeyToKey__
KeyCode::COMMAND_R,
KeyCode::RETURN, ModifierFlag::OPTION_L, Option::NOREPEAT
</autogen>
</item>
<!-- Shift+Space로 언어 변경 -->
<item>
<name>Shift+Space to Ctrl+Space</name>
<identifier>private.shiftSpace2ctrlSpace</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::KEYBOARD_K360</device_only>
<autogen>
__KeyToKey__
KeyCode::SPACE, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT,
KeyCode::SPACE, ModifierFlag::CONTROL_L
</autogen>
</item>
<item>
<name>Using Function Keys like Apple Keyboard</name>
<!-- Insert를 Fn키로 변경 -->
<item>
<name>Insert to Fn</name>
<identifier>private.insert2fn</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::KEYBOARD_K360</device_only>
<autogen>
__KeyToKey__
KeyCode::HELP,
KeyCode::FN
</autogen>
</item>
<!-- 애플 키보드 기능키 -->
<item>
<name>Apple Keyboard Functions</name>
<identifier>private.appleKeyboardFunctions</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::KEYBOARD_K360</device_only>
<autogen>
__KeyToKey__
KeyCode::F1, ModifierFlag::FN,
ConsumerKeyCode::BRIGHTNESS_DOWN
</autogen>
<autogen>
__KeyToKey__
KeyCode::F2, ModifierFlag::FN,
ConsumerKeyCode::BRIGHTNESS_UP
</autogen>
<autogen>
__KeyToKey__
KeyCode::F3, ModifierFlag::FN,
KeyCode::EXPOSE_ALL
</autogen>
<autogen>
__KeyToKey__
KeyCode::F4, ModifierFlag::FN,
KeyCode::DASHBOARD
</autogen>
<autogen>
__KeyToKey__
KeyCode::F5, ModifierFlag::FN,
KeyCode::LAUNCHPAD
</autogen>
<autogen>
__KeyToKey__
KeyCode::F7, ModifierFlag::FN,
ConsumerKeyCode::MUSIC_PREV
</autogen>
<autogen>
__KeyToKey__
KeyCode::F8, ModifierFlag::FN,
ConsumerKeyCode::MUSIC_PLAY
</autogen>
<autogen>
__KeyToKey__
KeyCode::F9, ModifierFlag::FN,
ConsumerKeyCode::MUSIC_NEXT
</autogen>
<autogen>
__KeyToKey__
KeyCode::F10, ModifierFlag::FN,
ConsumerKeyCode::VOLUME_MUTE
</autogen>
<autogen>
__KeyToKey__
KeyCode::F11, ModifierFlag::FN,
ConsumerKeyCode::VOLUME_DOWN
</autogen>
<autogen>
__KeyToKey__
KeyCode::F12, ModifierFlag::FN,
ConsumerKeyCode::VOLUME_UP
</autogen>
</item>
</item>
</item>
<!-- Logitech M545 Mouse -->
<item>
<name>Logitech M545 Mouse for Mac OS X</name>
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>MOUSE_M545</productname>
<productid>0x4028</productid>
</deviceproductdef>
<item>
<name>Please be sure to install Logitech Control Center for setting unifying devices.</name>
<appendix>http://support.logitech.com/ko_kr/software/logitech-control-center-for-macintosh-os-x</appendix>
</item>
<!--
스크롤 좌우 버튼으로 좌우 스크롤
http://whayon.zc.bz/wordpress/?p=360
-->
<item>
<name>Tilt Wheel to Horizontal Scrolling</name>
<identifier>private.tiltWheelToHorizontalScrolling</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::MOUSE_M545</device_only>
<autogen>
--PointingButtonToKey--
PointingButton::BUTTON4,
KeyCode::VK_MOUSEKEY_SCROLL_RIGHT
</autogen>
<autogen>
--PointingButtonToKey--
PointingButton::BUTTON5,
KeyCode::VK_MOUSEKEY_SCROLL_LEFT
</autogen>
</item>
<!--
사이드 버튼으로 브라우저 뒤로/앞으로
https://github.com/tekezo/Karabiner/issues/329#issuecomment-83359492
-->
<item>
<name>Side Buttons to Browser Navigation</name>
<identifier>private.side_buttons_to_browser_navigation</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::MOUSE_M545</device_only>
<autogen>
__SimultaneousKeyPresses__
KeyCode::COMMAND_L, KeyCode::D,
KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L
</autogen>
<autogen>
__KeyToKey__
KeyCode::COMMAND_L,
KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L
</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment