Skip to content

Instantly share code, notes, and snippets.

@xream
Last active September 15, 2017 01:54
Show Gist options
  • Save xream/99ac9841aa3ee80b10074d88ce6d2516 to your computer and use it in GitHub Desktop.
Save xream/99ac9841aa3ee80b10074d88ce6d2516 to your computer and use it in GitHub Desktop.
karabiner
global:
check_for_updates_on_startup: true
show_in_menu_bar: true
show_profile_name_in_menu_bar: false
profiles:
- complex_modifications:
parameters:
basic.to_if_alone_timeout_milliseconds: 1000
rules:
- manipulators:
- description: 'right_command: f15, left_command+left_control+left_option'
from:
key_code: right_command
modifiers:
optional:
- any
to:
- key_code: left_command
modifiers:
- left_control
- left_option
to_if_alone:
- key_code: f15
type: basic
- description: 'right_option: f14, left_command+left_control+left_option+left_shift'
from:
key_code: right_option
modifiers:
optional:
- any
to:
- key_code: left_command
modifiers:
- left_control
- left_option
- left_shift
to_if_alone:
- key_code: f14
type: basic
- description: 'backslash: backslash, left_command+left_control+left_option+left_shift'
from:
key_code: backslash
modifiers:
optional:
- any
to:
- key_code: left_command
modifiers:
- left_control
- left_option
- left_shift
to_if_alone:
- key_code: backslash
type: basic
- description: 'delete_forward: delete_forward, left_command+left_control+left_option'
from:
key_code: delete_forward
modifiers:
optional:
- any
to:
- key_code: left_command
modifiers:
- left_control
- left_option
to_if_alone:
- key_code: delete_forward
type: basic
- description: 'tab: tab, layer 1'
from:
key_code: tab
to:
- set_variable:
name: layer
value: 1
to_after_key_up:
- set_variable:
name: layer
value: 0
to_if_alone:
- key_code: tab
type: basic
- description: 'grave_accent_and_tilde: grave_accent_and_tilde, layer 2'
conditions:
- name: layer
type: variable_if
value: 0
from:
key_code: grave_accent_and_tilde
to:
- set_variable:
name: layer
value: 2
to_after_key_up:
- set_variable:
name: layer
value: 0
to_if_alone:
- key_code: grave_accent_and_tilde
type: basic
- description: 'grave_accent_and_tilde: grave_accent_and_tilde, 1.password'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: grave_accent_and_tilde
to:
- key_code: "1"
- key_code: "2"
- key_code: "3"
- key_code: return_or_enter
type: basic
- description: '1: 1.f1'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: "1"
to:
- key_code: f1
type: basic
- description: '2: 1.f2'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: "2"
to:
- key_code: f2
type: basic
- description: '3: 1.f3'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: "3"
to:
- key_code: f3
type: basic
- description: '4: 1.f4'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: "4"
to:
- key_code: f4
type: basic
- description: '5: 1.f5'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: "5"
to:
- key_code: f5
type: basic
- description: '6: 1.f6'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: "6"
to:
- key_code: f6
type: basic
- description: '7: 1.f7'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: "7"
to:
- key_code: f7
type: basic
- description: '8: 1.f8'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: "8"
to:
- key_code: f8
type: basic
- description: '9: 1.f9'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: "9"
to:
- key_code: f9
type: basic
- description: '0: 1.f10'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: "0"
to:
- key_code: f10
type: basic
- description: '-: 1.f11'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: hyphen
to:
- key_code: f11
type: basic
- description: '=: 1.f12'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: equal_sign
to:
- key_code: f12
type: basic
- description: 'h: 1.left_arrow'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: h
to:
- key_code: left_arrow
type: basic
- description: 'j: 1.down_arrow'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: j
to:
- key_code: down_arrow
type: basic
- description: 'k: 1.up_arrow'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: k
to:
- key_code: up_arrow
type: basic
- description: 'l: 1.right_arrow'
conditions:
- name: layer
type: variable_if
value: 1
from:
key_code: l
to:
- key_code: right_arrow
type: basic
- description: 'h: 2.home'
conditions:
- name: layer
type: variable_if
value: 2
from:
key_code: h
to:
- key_code: home
type: basic
- description: 'j: 2.page_down'
conditions:
- name: layer
type: variable_if
value: 2
from:
key_code: j
to:
- key_code: page_down
type: basic
- description: 'k: 2.page_up'
conditions:
- name: layer
type: variable_if
value: 2
from:
key_code: k
to:
- key_code: page_up
type: basic
- description: 'l: 2.end'
conditions:
- name: layer
type: variable_if
value: 2
from:
key_code: l
to:
- key_code: end
type: basic
- description: 'caps_lock: escape, left_control'
from:
key_code: caps_lock
modifiers:
optional:
- any
to:
- key_code: left_control
to_if_alone:
- key_code: escape
type: basic
- description: 'left_shift: f19, left_shift'
from:
key_code: left_shift
modifiers:
optional:
- any
to:
- key_code: left_shift
to_if_alone:
- key_code: f19
type: basic
- description: 'right_shift: shift-f19, right_shift'
from:
key_code: right_shift
modifiers:
optional:
- any
to:
- key_code: right_shift
to_if_alone:
- key_code: f19
modifiers:
- left_shift
type: basic
- description: 'left_command: f16, left_command'
from:
key_code: left_command
modifiers:
optional:
- any
to:
- key_code: left_command
to_if_alone:
- key_code: f16
type: basic
- description: 'left_option: f17, left_option'
from:
key_code: left_option
modifiers:
optional:
- any
to:
- key_code: left_option
to_if_alone:
- key_code: f17
type: basic
- description: 'left_control: f18, left_control'
from:
key_code: left_control
modifiers:
optional:
- any
to:
- key_code: left_control
to_if_alone:
- key_code: f18
type: basic
devices:
- disable_built_in_keyboard_if_exists: true
fn_function_keys: []
identifiers:
is_keyboard: true
is_pointing_device: false
product_id: 24672
vendor_id: 65261
ignore: false
simple_modifications: []
- disable_built_in_keyboard_if_exists: false
fn_function_keys: []
identifiers:
is_keyboard: true
is_pointing_device: false
product_id: 34304
vendor_id: 1452
ignore: true
simple_modifications: []
- disable_built_in_keyboard_if_exists: false
fn_function_keys: []
identifiers:
is_keyboard: true
is_pointing_device: false
product_id: 631
vendor_id: 1452
ignore: false
simple_modifications: []
- disable_built_in_keyboard_if_exists: true
fn_function_keys: []
identifiers:
is_keyboard: true
is_pointing_device: false
product_id: 20518
vendor_id: 1155
ignore: false
simple_modifications: []
- disable_built_in_keyboard_if_exists: false
fn_function_keys: []
identifiers:
is_keyboard: true
is_pointing_device: true
product_id: 20518
vendor_id: 1155
ignore: true
simple_modifications: []
fn_function_keys:
- from:
key_code: f1
to:
key_code: display_brightness_decrement
- from:
key_code: f2
to:
key_code: display_brightness_increment
- from:
key_code: f3
to:
key_code: mission_control
- from:
key_code: f4
to:
key_code: launchpad
- from:
key_code: f5
to:
key_code: illumination_decrement
- from:
key_code: f6
to:
key_code: illumination_increment
- from:
key_code: f7
to:
key_code: rewind
- from:
key_code: f8
to:
key_code: play_or_pause
- from:
key_code: f9
to:
key_code: fastforward
- from:
key_code: f10
to:
key_code: mute
- from:
key_code: f11
to:
key_code: volume_decrement
- from:
key_code: f12
to:
key_code: volume_increment
name: Default profile
selected: true
simple_modifications: []
virtual_hid_keyboard:
caps_lock_delay_milliseconds: 0
keyboard_type: ansi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment