Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save IvanRublev/2da1c7447d0458989d4654b5c35c22b4 to your computer and use it in GitHub Desktop.
Save IvanRublev/2da1c7447d0458989d4654b5c35c22b4 to your computer and use it in GitHub Desktop.
PC Keyboard layout to program in Swift language on macOS Sierra.
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"devices": [],
"fn_function_keys": {
"f1": "display_brightness_decrement",
"f10": "mute",
"f11": "volume_decrement",
"f12": "volume_increment",
"f2": "display_brightness_increment",
"f3": "mission_control",
"f4": "launchpad",
"f5": "illumination_decrement",
"f6": "illumination_increment",
"f7": "rewind",
"f8": "play_or_pause",
"f9": "fastforward"
},
"name": "Default profile",
"one_to_many_mappings": {},
"selected": false,
"simple_modifications": {
"left_command": "left_option",
"left_option": "left_command"
},
"standalone_keys": {},
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"keyboard_type": "ansi",
"standalone_keys_delay_milliseconds": 200
}
},
{
"devices": [],
"fn_function_keys": {
"f1": "display_brightness_decrement",
"f10": "mute",
"f11": "volume_decrement",
"f12": "volume_increment",
"f2": "display_brightness_increment",
"f3": "mission_control",
"f4": "launchpad",
"f5": "illumination_decrement",
"f6": "illumination_increment",
"f7": "rewind",
"f8": "play_or_pause",
"f9": "fastforward"
},
"name": "XCode profile",
"one_to_many_mappings": {
"0": [
"left_shift",
"hyphen"
],
"1": [
"left_shift",
"1"
],
"3": [
"left_shift",
"3"
],
"5": [
"left_shift",
"slash"
],
"6": [
"left_shift",
"comma"
],
"7": [
"left_shift",
"period"
],
"8": [
"left_shift",
"8"
],
"quote": [
"left_shift",
"quote"
],
"semicolon": [
"left_shift",
"semicolon"
]
},
"selected": true,
"simple_modifications": {
"caps_lock": "escape",
"close_bracket": "quote",
"left_command": "left_option",
"left_option": "left_command",
"open_bracket": "semicolon"
},
"standalone_keys": {
"2": [
"left_shift",
"2"
],
"4": [
"left_shift",
"4"
],
"9": [
"right_shift",
"7"
],
"non_us_backslash": [
"left_shift",
"5"
],
"f1": [
"left_shift",
"left_command",
"open_bracket"
],
"f2": [
"left_shift",
"left_command",
"close_bracket"
],
"f4": [
"caps_lock"
],
"left_control": [
"left_shift",
"open_bracket"
],
"left_option": [
"open_bracket"
],
"left_shift": [
"left_shift",
"9"
],
"right_control": [
"right_shift",
"close_bracket"
],
"right_option": [
"close_bracket"
],
"right_shift": [
"right_shift",
"0"
]
},
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"keyboard_type": "ansi",
"standalone_keys_delay_milliseconds": 200
}
}
]
}
[
{
"backcolor": "#222222",
"name": "PC Keyboard layout to program in Swift language on macOS Sierra.",
"author": "Ivan Rublev, 2017."
},
[
{
"c": "#282828",
"t": "#aaaaaa",
"h": 0.75
},
"<i class='mss mss-Unicode-Escape-3'></i>",
{
"x": 1,
"t": "#c9b638",
"h": 0.75
},
"Left Tab",
{
"h": 0.75
},
"Right Tab",
{
"t": "#aaaaaa",
"h": 0.75
},
"F3",
{
"t": "#c9b638",
"h": 0.75
},
"Caps Lock",
{
"x": 0.5,
"t": "#aaaaaa",
"h": 0.75
},
"F5",
{
"h": 0.75
},
"F6",
{
"h": 0.75
},
"F7",
{
"h": 0.75
},
"F8",
{
"x": 0.5,
"h": 0.75
},
"F9",
{
"h": 0.75
},
"F10",
{
"h": 0.75
},
"F11",
{
"h": 0.75
},
"F12",
{
"x": 0.25,
"h": 0.75
},
"Insert",
{
"h": 0.75
},
"ScrLk\nPause",
{
"h": 0.75
},
"PrtScn",
{
"x": 0.25,
"h": 0.75
},
"<i class='fa fa-calculator'></i>",
{
"h": 0.75
},
"<i class='kb kb-Multimedia-Play-Pause'></i>",
{
"h": 0.75
},
"<i class='kb kb-Multimedia-Mute-3'></i>",
{
"h": 0.75
},
"<i class='kb kb-Multimedia-Volume-Up-1'></i>"
],
[
"~\n`",
{
"t": "#c9b638"
},
"\n!",
"\n@",
"\n#",
"\n$",
"\n?",
"\n<",
"\n>",
"\n*",
"\n&",
"\n_",
{
"t": "#aaaaaa"
},
"_\n-",
"+\n=",
{
"w": 2
},
"Backspace",
{
"x": 0.25,
"h": 2
},
"Delete",
"Home",
"PgUp",
{
"x": 0.25
},
"Num Lock",
"/",
"*",
"-"
],
[
{
"w": 1.5
},
"Tab",
"Q",
"W",
"E",
"R",
"T",
"Y",
"U",
"I",
"O",
"P",
{
"t": "#c9b638"
},
":\n;",
"\"\n'",
{
"t": "#aaaaaa",
"w": 1.5
},
"|\n\\",
{
"x": 1.25
},
"End",
"PgDn",
{
"x": 0.25
},
"7\nHome",
"8\n↑",
"9\nPgUp",
{
"h": 2
},
"+"
],
[
{
"t": "#c9b638",
"w": 1.75
},
"<i class='mss mss-Unicode-Escape-3'></i>",
{
"t": "#aaaaaa"
},
"A",
"S",
"D",
"F",
"G",
"H",
"J",
"K",
"L",
{
"t": "#aaaaaa\n#c9b638"
},
":\n:",
"\"\n\"",
{
"t": "#aaaaaa",
"w": 2.25
},
"Enter",
{
"x": 3.5
},
"4\n←",
"5",
"6\n→"
],
[
{
"t": "#c9b638\n#666666",
"w": 2.25
},
"(\nShift",
{
"t": "#aaaaaa"
},
"Z",
"X",
"C",
"V",
"B",
"N",
"M",
"<\n,",
">\n.",
"/",
{
"t": "#c9b638\n#666666",
"w": 2.75
},
")\nShift",
{
"x": 1.25,
"t": "#aaaaaa"
},
"↑",
{
"x": 1.25
},
"1\nEnd",
"2\n↓",
"3\nPgDn",
{
"h": 2
},
"Enter"
],
[
{
"t": "#c9b638\n#666666",
"w": 1.25
},
"{\nCtrl",
{
"t": "#aaaaaa\n#666666",
"w": 1.25
},
"\n<i class='mss mss-Unicode-Alternate-3'></i>",
{
"t": "#c9b638\n#666666",
"w": 1.25
},
"[\n<i class='mss mss-Unicode-Command-3'></i>",
{
"t": "#aaaaaa",
"a": 7,
"w": 7.25
},
"",
{
"t": "#c9b638\n#666666",
"a": 4,
"w": 1.25
},
"]\n<i class='mss mss-Unicode-Command-3'></i>",
{
"t": "#aaaaaa",
"a": 7,
"w": 1.5
},
"",
{
"t": "#c9b638\n#666666",
"a": 4,
"w": 1.25
},
"}\nCtrl",
{
"x": 0.25,
"t": "#aaaaaa"
},
"←",
"↓",
"→",
{
"x": 0.25,
"w": 2
},
"0\nIns",
".\nDel"
]
]

This keyboard layout is for faster typing of Swift programming language lexemes. It represents keys remaps for PC Microsoft Comfort Curve 3000 Qwerty Keyboard. Most number keys are remapped to symbols. Use numpad to enter numbers.

This layout is designed for macOS Sierra. Keys remaps are specified in karabiner.json configuration file for a custom shift-to-parens build of Karabiner-Elements app. Karabiner-Elements configuration should be saved to ~/.config/karabiner/karabiner.json.

To train touch-typing with this layout you can use:


Swift is a technology of Apple Inc. https://developer.apple.com/swift/

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment