YUBI_ENABLE
-
Ignore Yubikey key presses
Ideal for scenarios where you may accidentally touch the
Yubikey and output an unwanted code. This rule requires
double-pressing SHIFT_R, which enables the Yubikey for a
single token output.
In addition, it always allows the Yubikey to work if a text
field is in focus or if the current application is a terminal.
private.yubikey_ignore
__DoublePressModifier__ KeyCode::SHIFT_R,
KeyCode::SHIFT_R,
KeyCode::VK_LOCK_YUBI_ENABLE
DeviceVendor::YUBICO
ModifierFlag::YUBI_ENABLE
TERMINAL
AXTextField
__KeyToKey__ KeyCode::A, KeyCode::VK_NONE
__KeyToKey__ KeyCode::B, KeyCode::VK_NONE
__KeyToKey__ KeyCode::C, KeyCode::VK_NONE
__KeyToKey__ KeyCode::D, KeyCode::VK_NONE
__KeyToKey__ KeyCode::E, KeyCode::VK_NONE
__KeyToKey__ KeyCode::F, KeyCode::VK_NONE
__KeyToKey__ KeyCode::G, KeyCode::VK_NONE
__KeyToKey__ KeyCode::H, KeyCode::VK_NONE
__KeyToKey__ KeyCode::I, KeyCode::VK_NONE
__KeyToKey__ KeyCode::J, KeyCode::VK_NONE
__KeyToKey__ KeyCode::K, KeyCode::VK_NONE
__KeyToKey__ KeyCode::L, KeyCode::VK_NONE
__KeyToKey__ KeyCode::M, KeyCode::VK_NONE
__KeyToKey__ KeyCode::N, KeyCode::VK_NONE
__KeyToKey__ KeyCode::O, KeyCode::VK_NONE
__KeyToKey__ KeyCode::P, KeyCode::VK_NONE
__KeyToKey__ KeyCode::Q, KeyCode::VK_NONE
__KeyToKey__ KeyCode::R, KeyCode::VK_NONE
__KeyToKey__ KeyCode::S, KeyCode::VK_NONE
__KeyToKey__ KeyCode::T, KeyCode::VK_NONE
__KeyToKey__ KeyCode::U, KeyCode::VK_NONE
__KeyToKey__ KeyCode::V, KeyCode::VK_NONE
__KeyToKey__ KeyCode::W, KeyCode::VK_NONE
__KeyToKey__ KeyCode::X, KeyCode::VK_NONE
__KeyToKey__ KeyCode::Y, KeyCode::VK_NONE
__KeyToKey__ KeyCode::Z, KeyCode::VK_NONE
__KeyToKey__ KeyCode::SEMICOLON, KeyCode::VK_NONE
__KeyToKey__ KeyCode::QUOTE, KeyCode::VK_NONE
__KeyToKey__ KeyCode::TAB, KeyCode::VK_NONE
__KeyToKey__ KeyCode::RETURN, KeyCode::VK_NONE
__KeyToKey__ KeyCode::SPACE, KeyCode::VK_NONE
DeviceVendor::YUBICO
ModifierFlag::YUBI_ENABLE
__KeyToKey__ KeyCode::RETURN, KeyCode::RETURN,
Option::KEYTOKEY_AFTER_KEYUP, KeyCode::VK_LOCK_YUBI_ENABLE_FORCE_OFF
COLEMAK
com.apple.keylayout.Colemak
-
Yubikey from Colemak to QWERTY
If the system layout is set to Colemak, remap the Yubikey
back to QWERTY so that the tokens are correct.
private.yubikey_colemak_qwerty
DeviceVendor::YUBICO
COLEMAK
__KeyToKey__ KeyCode::F, KeyCode::E
__KeyToKey__ KeyCode::P, KeyCode::R
__KeyToKey__ KeyCode::G, KeyCode::T
__KeyToKey__ KeyCode::J, KeyCode::Y
__KeyToKey__ KeyCode::L, KeyCode::U
__KeyToKey__ KeyCode::U, KeyCode::I
__KeyToKey__ KeyCode::Y, KeyCode::O
__KeyToKey__ KeyCode::SEMICOLON, KeyCode::P
__KeyToKey__ KeyCode::R, KeyCode::S
__KeyToKey__ KeyCode::S, KeyCode::D
__KeyToKey__ KeyCode::T, KeyCode::F
__KeyToKey__ KeyCode::D, KeyCode::G
__KeyToKey__ KeyCode::N, KeyCode::J
__KeyToKey__ KeyCode::E, KeyCode::K
__KeyToKey__ KeyCode::I, KeyCode::L
__KeyToKey__ KeyCode::O, KeyCode::SEMICOLON
__KeyToKey__ KeyCode::K, KeyCode::N