Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Karabiner-Elements launcher, using space and space-shift for apps, folders, and files; tab for Alfred workflows; and tab-shift for URL's
{
"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_delayed_action_delay_milliseconds": 0,
"basic.to_if_alone_timeout_milliseconds": 500
},
"rules": [
{
"description": "my launcher",
"manipulators": [
{
"from": {
"key_code": "spacebar"
},
"to": [
{
"set_variable": {
"name": "spacebar_modifier",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "spacebar_modifier",
"value": 0
}
}
],
"to_if_alone": [
{
"key_code": "spacebar"
}
],
"type": "basic"
},
{
"from": {
"key_code": "tab"
},
"to": [
{
"set_variable": {
"name": "tab_modifier",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "tab_modifier",
"value": 0
}
}
],
"to_if_alone": [
{
"key_code": "tab"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "a"
},
"to": [
{
"shell_command": "/usr/bin/osascript ~/Documents/Box\\ Sync/var/computing/MacOS/scripts/AstrillToggle.scpt"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "h"
},
"to": [
{
"shell_command": "/usr/bin/osascript -e 'tell application \"Alfred 3\" to run trigger \"hsi-ext\" in workflow \"com.rx2130.alfred.hsi\"'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "m"
},
"to": [
{
"shell_command": "/usr/bin/osascript -e 'tell application \"Alfred 3\" to run trigger \"@-ext\" in workflow \"net.deanishe.alfred-mailto\"'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "p"
},
"to": [
{
"shell_command": "/usr/bin/osascript -e 'tell application \"Alfred 3\" to run trigger \"top-ext\" in workflow \"com.vitorgalvao.alfred.processcontrol\"'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "t"
},
"to": [
{
"shell_command": "/usr/bin/osascript -e 'tell application \"Alfred 3\" to run trigger \"tabs-ext\" in workflow \"com.clintonstrong.SearchTabs\"'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "u"
},
"to": [
{
"shell_command": "/usr/bin/osascript -e 'tell application \"Alfred 3\" to run trigger \"Search menu bar-ext\" in workflow \"com.tedwise.menubarsearch\"'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "1",
"modifiers": {
"optional": [
"left_shift",
"right_shift"
]
}
},
"to": [
{
"shell_command": "open 'http://espn.go.com/nhl/team/_/name/pit/pittsburgh-penguins'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "2",
"modifiers": {
"optional": [
"left_shift",
"right_shift"
]
}
},
"to": [
{
"shell_command": "open 'http://espn.go.com/mlb/team/_/name/pit/pittsburgh-pirates'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "3",
"modifiers": {
"optional": [
"left_shift",
"right_shift"
]
}
},
"to": [
{
"shell_command": "open 'http://www.espn.com/nfl/team/_/name/pit/pittsburgh-steelers'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "b",
"modifiers": {
"optional": [
"left_shift",
"right_shift"
]
}
},
"to": [
{
"shell_command": "open 'https://app.box.com/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "d",
"modifiers": {
"optional": [
"left_shift",
"right_shift"
]
}
},
"to": [
{
"shell_command": "open 'https://nl4194.dediseedbox.com/rutorrent/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "g",
"modifiers": {
"optional": [
"left_shift",
"right_shift"
]
}
},
"to": [
{
"shell_command": "open 'https://www.google.com/advanced_search'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "m",
"modifiers": {
"optional": [
"left_shift",
"right_shift"
]
}
},
"to": [
{
"shell_command": "open 'https://eha.moodle.school/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "s",
"modifiers": {
"optional": [
"left_shift",
"right_shift"
]
}
},
"to": [
{
"shell_command": "open 'https://player.siriusxm.com/#/player/live'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "tab_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "v",
"modifiers": {
"optional": [
"left_shift",
"right_shift"
]
}
},
"to": [
{
"shell_command": "open 'http://www.vegasinsider.com/nfl/odds/las-vegas/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "g"
},
"to": [
{
"pointing_button": "button1"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "h"
},
"to": [
{
"pointing_button": "button2"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "0"
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/curr/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "1"
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/lib/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "2"
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/var/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "3"
},
"to": [
{
"shell_command": "open '/Users/e/Documents/media/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "4"
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/var/word/academic/class/semesters/2017-2-fall'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "5"
},
"to": [
{
"shell_command": "open '/Users/e/Downloads/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "6"
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/var/word/academic/teaching/notes-texts/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "7"
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/var/word/personal/db/movies.xlsx'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "8"
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/var/word/personal/db/viewings.xlsx'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "9"
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/var/word/personal/db/workout.xlsx'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "equal_sign"
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/var/word/personal/db/viewings.xlsx'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "hyphen"
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/var/word/personal/db/tv.xlsx'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "k"
},
"to": [
{
"shell_command": "open '/Users/e/Documents/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "1",
"modifiers": {
"optional": [
"right_shift",
"left_shift"
]
}
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/var/word/personal'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "2",
"modifiers": {
"optional": [
"right_shift",
"left_shift"
]
}
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/var/word/academic/research/0-CurrentProjects/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "3",
"modifiers": {
"optional": [
"right_shift",
"left_shift"
]
}
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/var/word/academic'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "5",
"modifiers": {
"optional": [
"right_shift",
"left_shift"
]
}
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/var/word/personal/computing/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "6",
"modifiers": {
"optional": [
"right_shift",
"left_shift"
]
}
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/var/word/personal/business/places/China/Zhuhai/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "7",
"modifiers": {
"optional": [
"right_shift",
"left_shift"
]
}
},
"to": [
{
"shell_command": "open '/Users/e/Documents/Box Sync/var/word/academic/job/Bryant/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "8",
"modifiers": {
"optional": [
"left_shift",
"right_shift"
]
}
},
"to": [
{
"shell_command": "open '/Users/e/Documents/media/ToWatch/'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "i"
},
"to": [
{
"shell_command": "open '/Applications/iExplorer.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "s"
},
"to": [
{
"shell_command": "open '/Applications/Safari.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "z"
},
"to": [
{
"shell_command": "open '/Applications/FileZilla.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "u"
},
"to": [
{
"shell_command": "open '/Applications/Gnucash.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "p"
},
"to": [
{
"shell_command": "open '/Applications/PDF Expert.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "n"
},
"to": [
{
"shell_command": "open '/Applications/Notes.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "e"
},
"to": [
{
"shell_command": "open '/Applications/Aquamacs.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "l"
},
"to": [
{
"shell_command": "open '/Applications/Jump Desktop.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "r"
},
"to": [
{
"shell_command": "open '/Applications/1Password 6.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "y"
},
"to": [
{
"shell_command": "open '/Applications/Utilities/Activity Monitor.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "a"
},
"to": [
{
"shell_command": "open '/Applications/Astrill.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "m"
},
"to": [
{
"shell_command": "open '/Applications/Mail.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "c"
},
"to": [
{
"shell_command": "open '/Applications/Calendar.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "f"
},
"to": [
{
"shell_command": "open '/Applications/Path Finder.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "d"
},
"to": [
{
"shell_command": "open '/Applications/DiskCatalogMaker.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "g"
},
"to": [
{
"shell_command": "open '/Applications/Gnucash.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "j"
},
"to": [
{
"shell_command": "open '/Applications/LaunchBar.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "w"
},
"to": [
{
"shell_command": "open '/Applications/WeChat.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "v"
},
"to": [
{
"shell_command": "open '/Applications/VLC.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "o"
},
"to": [
{
"shell_command": "open '/Applications/Microsoft Word.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_modifier",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "x"
},
"to": [
{
"shell_command": "open '/Applications/Microsoft Excel.app'"
}
],
"type": "basic"
}
]
}
]
},
"devices": [],
"fn_function_keys": [
{
"from": {
"key_code": "f1"
},
"to": {
"consumer_key_code": "display_brightness_decrement"
}
},
{
"from": {
"key_code": "f2"
},
"to": {
"consumer_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": {
"consumer_key_code": "rewind"
}
},
{
"from": {
"key_code": "f8"
},
"to": {
"consumer_key_code": "play_or_pause"
}
},
{
"from": {
"key_code": "f9"
},
"to": {
"consumer_key_code": "fastforward"
}
},
{
"from": {
"key_code": "f10"
},
"to": {
"consumer_key_code": "mute"
}
},
{
"from": {
"key_code": "f11"
},
"to": {
"consumer_key_code": "volume_decrement"
}
},
{
"from": {
"key_code": "f12"
},
"to": {
"consumer_key_code": "volume_increment"
}
}
],
"name": "Default profile",
"selected": true,
"simple_modifications": [
{
"from": {
"key_code": "caps_lock"
},
"to": {
"key_code": "left_control"
}
},
{
"from": {
"key_code": "right_option"
},
"to": {
"shell_command": "open '/Applications/LaunchBar.app'"
}
}
],
"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
You can’t perform that action at this time.