Skip to content

Instantly share code, notes, and snippets.

@Simhyeon
Simhyeon / .Xmodmap
Last active September 17, 2022 08:26
Xmodmap example
! # NOTE
!
! For asian users, this keymappings will not work when typing in your native
! language. You need a separate article to understand why that doesn't work,
! yet you can use keyd or kmonad if you need low-level global key mapping.
! I personally recommend using keyd if you are not familar with lisp-like
! languages.
!
! - Keyd repository : https://github.com/rvaiya/keyd
! - My config for keyd : https://gist.github.com/Simhyeon/58b008a9a5d8e8b34d78d774db1f745b
@styxyang
styxyang / numlock_osx.xml
Last active July 26, 2022 03:36
This is a Karabiner configuration to get NumLock work on OS X the same way as PC
<!-- Get NumLock on keypad to work on osx for G80-3494, Realforce and so on -->
<!-- By https://groups.google.com/d/msg/osx-karabiner/-2ns5XVXXdQ/kDGIKVSztjwJ -->
<item>
<name>Map NumLock to OSX NumLock function</name>
<identifier>private.pc_numlock_to_mac_numlock</identifier>
<autogen>__KeyToKey__ KeyCode::KEYPAD_CLEAR, KeyCode::VK_IOHIKEYBOARD_TOGGLE_NUMLOCK</autogen>
</item>