Skip to content

Commit

Permalink
Add launch_2 (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 authored Jun 24, 2022
1 parent d9e21b0 commit 85f82f6
Show file tree
Hide file tree
Showing 7 changed files with 1,745 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/daemon/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ impl<R: Read + Send + 'static, W: Write + Send + 'static> Daemon for DaemonServe
// System76 launch_1
(0x3384, 0x0001, 1) |
// System76 launch_lite_1
(0x3384, 0x0005, 1) => {
(0x3384, 0x0005, 1) |
// System76 launch_2
(0x3384, 0x0006, 1) => {
// Skip if device already open
if self.have_device(&info) {
continue;
Expand Down
285 changes: 285 additions & 0 deletions layouts/keyboards/system76/launch_2/keymap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,285 @@
{
"NONE": 0,
"ROLL_OVER": 1,
"POST_FAIL": 2,
"UNDEFINED": 3,
"A": 4,
"B": 5,
"C": 6,
"D": 7,
"E": 8,
"F": 9,
"G": 10,
"H": 11,
"I": 12,
"J": 13,
"K": 14,
"L": 15,
"M": 16,
"N": 17,
"O": 18,
"P": 19,
"Q": 20,
"R": 21,
"S": 22,
"T": 23,
"U": 24,
"V": 25,
"W": 26,
"X": 27,
"Y": 28,
"Z": 29,
"1": 30,
"2": 31,
"3": 32,
"4": 33,
"5": 34,
"6": 35,
"7": 36,
"8": 37,
"9": 38,
"0": 39,
"ENTER": 40,
"ESC": 41,
"BKSP": 42,
"TAB": 43,
"SPACE": 44,
"MINUS": 45,
"EQUALS": 46,
"BRACE_OPEN": 47,
"BRACE_CLOSE": 48,
"BACKSLASH": 49,
"NONUS_HASH": 50,
"SEMICOLON": 51,
"QUOTE": 52,
"TICK": 53,
"COMMA": 54,
"PERIOD": 55,
"SLASH": 56,
"CAPS": 57,
"F1": 58,
"F2": 59,
"F3": 60,
"F4": 61,
"F5": 62,
"F6": 63,
"F7": 64,
"F8": 65,
"F9": 66,
"F10": 67,
"F11": 68,
"F12": 69,
"PRINT_SCREEN": 70,
"SCROLL_LOCK": 71,
"PAUSE": 72,
"INSERT": 73,
"HOME": 74,
"PGUP": 75,
"DEL": 76,
"END": 77,
"PGDN": 78,
"RIGHT": 79,
"LEFT": 80,
"DOWN": 81,
"UP": 82,
"NUM_LOCK": 83,
"NUM_SLASH": 84,
"NUM_ASTERISK": 85,
"NUM_MINUS": 86,
"NUM_PLUS": 87,
"NUM_ENTER": 88,
"NUM_1": 89,
"NUM_2": 90,
"NUM_3": 91,
"NUM_4": 92,
"NUM_5": 93,
"NUM_6": 94,
"NUM_7": 95,
"NUM_8": 96,
"NUM_9": 97,
"NUM_0": 98,
"NUM_PERIOD": 99,
"NONUS_BSLASH": 100,
"APP": 101,
"POWER": 102,
"NUM_EQUALS": 103,
"F13": 104,
"F14": 105,
"F15": 106,
"F16": 107,
"F17": 108,
"F18": 109,
"F19": 110,
"F20": 111,
"F21": 112,
"F22": 113,
"F23": 114,
"F24": 115,
"EXECUTE": 116,
"HELP": 117,
"MENU": 118,
"SELECT": 119,
"STOP": 120,
"AGAIN": 121,
"UNDO": 122,
"CUT": 123,
"COPY": 124,
"PASTE": 125,
"FIND": 126,
"_MUTE": 127,
"_VOLUP": 128,
"_VOLDOWN": 129,
"LOCKING_CAPS": 130,
"LOCKING_NUM": 131,
"LOCKING_SCROLL": 132,
"NUM_COMMA": 133,
"KP_EQUAL_AS400": 134,
"INT1": 135,
"INT2": 136,
"INT3": 137,
"INT4": 138,
"INT5": 139,
"INT6": 140,
"INT7": 141,
"INT8": 142,
"INT9": 143,
"LANG1": 144,
"LANG2": 145,
"LANG3": 146,
"LANG4": 147,
"LANG5": 148,
"LANG6": 149,
"LANG7": 150,
"LANG8": 151,
"LANG9": 152,
"ALT_ERASE": 153,
"SYSREQ": 154,
"CANCEL": 155,
"CLEAR": 156,
"PRIOR": 157,
"RETURN": 158,
"SEPARATOR": 159,
"OUT": 160,
"OPER": 161,
"CLEAR_AGAIN": 162,
"CRSEL": 163,
"EXSEL": 164,
"LEFT_CTRL": 224,
"LEFT_SHIFT": 225,
"LEFT_ALT": 226,
"LEFT_SUPER": 227,
"RIGHT_CTRL": 228,
"RIGHT_SHIFT": 229,
"RIGHT_ALT": 230,
"RIGHT_SUPER": 231,
"SYSTEM_POWER": 165,
"SUSPEND": 166,
"SYSTEM_WAKE": 167,
"MUTE": 168,
"VOLUME_UP": 169,
"VOLUME_DOWN": 170,
"MEDIA_NEXT": 171,
"MEDIA_PREV": 172,
"MEDIA_STOP": 173,
"PLAY_PAUSE": 174,
"MEDIA_SELECT": 175,
"MEDIA_EJECT": 176,
"MAIL": 177,
"CALCULATOR": 178,
"MY_COMPUTER": 179,
"WWW_SEARCH": 180,
"WWW_HOME": 181,
"WWW_BACK": 182,
"WWW_FORWARD": 183,
"WWW_STOP": 184,
"WWW_REFRESH": 185,
"WWW_FAVORITES": 186,
"MEDIA_FAST_FORWARD": 187,
"MEDIA_REWIND": 188,
"BRIGHTNESS_UP": 189,
"BRIGHTNESS_DOWN": 190,
"FN0": 192,
"FN1": 193,
"FN2": 194,
"FN3": 195,
"FN4": 196,
"FN5": 197,
"FN6": 198,
"FN7": 199,
"FN8": 200,
"FN9": 201,
"FN10": 202,
"FN11": 203,
"FN12": 204,
"FN13": 205,
"FN14": 206,
"FN15": 207,
"FN16": 208,
"FN17": 209,
"FN18": 210,
"FN19": 211,
"FN20": 212,
"FN21": 213,
"FN22": 214,
"FN23": 215,
"FN24": 216,
"FN25": 217,
"FN26": 218,
"FN27": 219,
"FN28": 220,
"FN29": 221,
"FN30": 222,
"FN31": 223,
"MS_UP": 237,
"MS_DOWN": 238,
"MS_LEFT": 239,
"MS_RIGHT": 240,
"MS_BTN1": 241,
"MS_BTN2": 242,
"MS_BTN3": 243,
"MS_BTN4": 244,
"MS_BTN5": 245,
"MS_BTN6": 246,
"MS_BTN7": 247,
"MS_BTN8": 248,
"MS_WH_UP": 249,
"MS_WH_DOWN": 250,
"MS_WH_LEFT": 251,
"MS_WH_RIGHT": 252,
"MS_ACCEL0": 253,
"MS_ACCEL1": 254,
"MS_ACCEL2": 255,
"KBD_TOGGLE": 23747,
"RGB_MODE_FORWARD": 23748,
"RGB_MODE_REVERSE": 23749,
"RGB_HUI": 23750,
"RGB_HUD": 23751,
"RGB_SAI": 23752,
"RGB_SAD": 23753,
"KBD_UP": 23754,
"KBD_DOWN": 23755,
"RGB_SPI": 23756,
"RGB_SPD": 23757,
"RGB_MODE_PLAIN": 23758,
"RGB_MODE_BREATHE": 23759,
"RGB_MODE_RAINBOW": 23760,
"RGB_MODE_SWIRL": 23761,
"RGB_MODE_SNAKE": 23762,
"RGB_MODE_KNIGHT": 23763,
"RGB_MODE_XMAS": 23764,
"RGB_MODE_GRADIENT": 23765,
"RGB_MODE_RGBTEST": 23766,
"LAYER_TOGGLE_1": 21248,
"LAYER_TOGGLE_2": 21249,
"LAYER_TOGGLE_3": 21250,
"LAYER_TOGGLE_4": 21251,
"LAYER_SWITCH_1": 20496,
"LAYER_SWITCH_2": 20497,
"LAYER_SWITCH_3": 20498,
"LAYER_SWITCH_4": 20499,
"LAYER_ACCESS_1": 20736,
"FN": 20737,
"LAYER_ACCESS_3": 20738,
"LAYER_ACCESS_4": 20739,
"RESET": 23552
}
Loading

0 comments on commit 85f82f6

Please sign in to comment.