Last active
August 22, 2020 13:21
-
-
Save val314159/97f51b24569cc559023195512efc5e83 to your computer and use it in GitHub Desktop.
Revisions
-
val314159 revised this gist
Aug 22, 2020 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -159,6 +159,7 @@ "mandatory": [ ], "optional": [ "caps_lock" ] } }, @@ -195,7 +196,7 @@ { "type": "basic", "from": { "key_code": "left_command", "modifiers": { "mandatory": [ "caps_lock" -
val314159 revised this gist
Aug 22, 2020 . 1 changed file with 3 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ { "description": "augment tab", "manipulators": [ { "from": { @@ -159,7 +159,6 @@ "mandatory": [ ], "optional": [ ] } }, @@ -188,7 +187,7 @@ } ], "parameters": { "basic.to_delayed_action_delay_milliseconds": 500 } }, @@ -212,10 +211,7 @@ "modifiers": [ ] } ] }, -
val314159 revised this gist
Aug 22, 2020 . 1 changed file with 160 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,135 @@ { "description": "augment tab", "manipulators": [ { "from": { "key_code": "4", "modifiers": { "optional": [ "any" ] } }, "to": [ { "hold_down_milliseconds": 0, "key_code": "caps_lock" }, { "key_code": "vk_none" } ], "type": "basic" }, { "type": "basic", "from": { "key_code": "i", "modifiers": { "mandatory": [ "caps_lock" ], "optional": [ ] } }, "to": [ { "key_code": "up_arrow", "modifiers": [ "caps_lock" ] } ] }, { "type": "basic", "from": { "key_code": "j", "modifiers": { "mandatory": [ "caps_lock" ], "optional": [ ] } }, "to": [ { "key_code": "left_arrow", "modifiers": [ "caps_lock" ] } ] }, { "type": "basic", "from": { "key_code": "k", "modifiers": { "mandatory": [ "caps_lock" ], "optional": [ ] } }, "to": [ { "key_code": "down_arrow", "modifiers": [ "caps_lock" ] } ] }, { "type": "basic", "from": { "key_code": "l", "modifiers": { "mandatory": [ "caps_lock" ], "optional": [ ] } }, "to": [ { "key_code": "right_arrow", "modifiers": [ "caps_lock" ] } ] }, { "type": "basic", "from": { "key_code": "semicolon", "modifiers": { "mandatory": [ "caps_lock" ], "optional": [ ] } }, "to": [ { "key_code": "caps_lock", "modifiers": [ ] } ] }, { "type": "basic", "from": { "key_code": "left_control", "modifiers": { "mandatory": [ ], @@ -24,15 +149,17 @@ } ] }, { "type": "basic", "from": { "key_code": "right_command", "modifiers": { "mandatory": [ ], "optional": [ "right_command" ] } }, @@ -64,7 +191,35 @@ "basic.to_delayed_action_delay_milliseconds": 2000 } }, { "type": "basic", "from": { "key_code": "right_command", "modifiers": { "mandatory": [ "caps_lock" ], "optional": [ "right_command" ] } }, "to": [ { "key_code": "right_command", "modifiers": [ ] } ], "parameters": { "basic.to_delayed_action_delay_milliseconds": 2000 } }, { "type": "basic", "from": { "key_code": "right_shift", -
val314159 revised this gist
Aug 22, 2020 . 3 changed files with 159 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ qall: clean tmp2.out cp tmp2.out ../tmp2.out tmp2.out: python -um%filter %prelude.json grail.js | tee $@ call: clean all all: tmp.out This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ { "type": "basic", "from": { "key_code": "escape", "modifiers": { "mandatory": [ ], @@ -26,6 +26,46 @@ }, { "type": "basic", "from": { "key_code": "right_command", "modifiers": { "mandatory": [ ], "optional": [ "caps_lock", "right_command" ] } }, "to": [ { "key_code": "right_command", "modifiers": [ "caps_lock" ] } ], "to_if_alone": [ { "halt": true, "key_code": "right_command", "modifiers": [ ] } ], "to_after_key_up": [ { "key_code": "right_command", "modifiers": [ "caps_lock" ] } ], "parameters": { "basic.to_delayed_action_delay_milliseconds": 2000 } }, { "type": "basic", "from": { "key_code": "right_shift", "modifiers": { This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,116 @@ { "description": "augment tab", "manipulators": [ { "type": "basic", "from": { "key_code": "escape", "modifiers": { "mandatory": [ ], "optional": [ "any" ] } }, "to_if_alone": [ { "key_code": "tab" } ], "to": [ { "key_code": "left_control" } ] }, { "type": "basic", "from": { "key_code": "right_command", "modifiers": { "mandatory": [ ], "optional": [ "caps_lock", "right_command" ] } }, "to": [ { "key_code": "right_command", "modifiers": [ "caps_lock" ] } ], "to_delayed_action": { "to_if_invoked": [ ], "to_if_canceled": [ { "halt": true, "key_code": "right_command", "modifiers": [ "caps_lock" ] } ] }, "parameters": { "basic.to_delayed_action_delay_milliseconds": 250 }, "to_after_key_up": [ ] }, { "type": "basic", "from": { "key_code": "right_shift", "modifiers": { "mandatory": [ "left_option" ], "optional": [ ] } }, "to": [ { "repeat": false, "key_code": "escape", "modifiers": [ ] }, { "key_code": "right_shift" } ] }, { "type": "basic", "from": { "key_code": "left_option", "modifiers": { "mandatory": [ ], "optional": [ "any" ] } }, "to_if_alone": [ { "key_code": "escape", "modifiers": [ ] } ], "to": [ { "key_code": "left_option" } ] } ] } -
val314159 revised this gist
Aug 22, 2020 . 2 changed files with 77 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,3 @@ qall: clean tmp2.out cp tmp2.out ../tmp2.out tmp2.out: *.json This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,77 @@ { "description": "augment tab", "manipulators": [ { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "mandatory": [ ], "optional": [ "any" ] } }, "to_if_alone": [ { "key_code": "tab" } ], "to": [ { "key_code": "left_control" } ] }, { "type": "basic", "from": { "key_code": "right_shift", "modifiers": { "mandatory": [ "left_option" ], "optional": [ ] } }, "to": [ { "repeat": false, "key_code": "escape", "modifiers": [ ] }, { "key_code": "right_shift" } ] }, { "type": "basic", "from": { "key_code": "left_option", "modifiers": { "mandatory": [ ], "optional": [ "any" ] } }, "to_if_alone": [ { "key_code": "escape", "modifiers": [ ] } ], "to": [ { "key_code": "left_option" } ] } ] } -
val314159 revised this gist
Aug 22, 2020 . 6 changed files with 0 additions and 930 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,220 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,26 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,173 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,415 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,51 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,45 +0,0 @@ -
val314159 revised this gist
Aug 22, 2020 . 18 changed files with 2001 additions and 338 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,18 @@ z: python3 -umpyaml < x.yaml qall: clean tmp2.out cp tmp2.out ../tmp2.out tmp2.out: *.json python -um%filter %prelude.json *.js | tee $@ call: clean all all: tmp.out cp tmp.out .. tmp.out: *.json python -um%filter *.json | tee $@ clean: rm -fr *.out *~ *.pyc __pycache__ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,240 @@ { "description": "left shift, misc", "manipulators": [ { "type": "basic", "from": { "key_code": "m", "modifiers": { "mandatory": [ "left_shift", "right_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "slash", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "m", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "slash" } ] }, { "type": "basic", "from": { "key_code": "n", "modifiers": { "mandatory": [ "left_shift", "right_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "backslash", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "n", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "backslash" } ] }, { "type": "basic", "from": { "key_code": "z", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "hyphen", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "x", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "hyphen" } ] }, { "type": "basic", "from": { "key_code": "c", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "equal_sign" } ] }, { "type": "basic", "from": { "key_code": "v", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "equal_sign", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "b", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "quote" } ] }, { "type": "basic", "from": { "key_code": "slash", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "period" } ] }, { "type": "basic", "from": { "key_code": "backslash", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "comma" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ { "description": "caps_lock := left control / escape", "manipulators": [ { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_control" } ], "to_if_alone": [ { "key_code": "tab" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ { "description": "Change left control (capslock->ctl/tab)", "manipulators": [ { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_control" } ], "to_if_alone": [ { "key_code": "escape" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,173 @@ { "description": "crsr1", "manipulators": [ { "type": "basic", "from": { "key_code": "p", "modifiers": { "mandatory": [ "right_command", "right_option" ], "optional": [ "any" ] } }, "to": [ { "key_code": "p", "modifiers": [ "left_command" ] } ] }, { "type": "basic", "from": { "key_code": "l", "modifiers": { "mandatory": [ "right_command", "right_option" ], "optional": [ "any" ] } }, "to": [ { "key_code": "l", "modifiers": [ "left_command" ] } ] }, { "type": "basic", "from": { "key_code": "semicolon", "modifiers": { "mandatory": [ "right_command", "right_option" ], "optional": [ "any" ] } }, "to": [ { "key_code": "semicolon", "modifiers": [ "left_command" ] } ] }, { "type": "basic", "from": { "key_code": "quote", "modifiers": { "mandatory": [ "right_command", "right_option" ], "optional": [ "any" ] } }, "to": [ { "key_code": "quote", "modifiers": [ "left_command" ] } ] }, { "type": "basic", "from": { "key_code": "p", "modifiers": { "mandatory": [ "right_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "up_arrow" } ] }, { "type": "basic", "from": { "key_code": "l", "modifiers": { "mandatory": [ "right_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "left_arrow" } ] }, { "type": "basic", "from": { "key_code": "semicolon", "modifiers": { "mandatory": [ "right_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "down_arrow" } ] }, { "type": "basic", "from": { "key_code": "quote", "modifiers": { "mandatory": [ "right_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "right_arrow" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,244 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ { "description": "left option", "manipulators": [ { "type": "basic", "from": { "key_code": "left_option", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_option" } ], "to_if_alone": [ { "key_code": "escape" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,47 @@ { "description": "left shift (mostly number row)", "manipulators": [ { "type": "basic", "from": { "key_code": "q", "modifiers": { "mandatory": [ "right_shift", "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "r" } ] }, { "type": "basic", "from": { "key_code": "q", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "g", "modifiers": [ "right_shift" ] } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,498 @@ { "description": "numbers", "manipulators": [ { "type": "basic", "from": { "key_code": "o", "modifiers": { "mandatory": [ "left_control" ], "optional": [ ] } }, "to": [ { "key_code": "open_bracket" } ] }, { "type": "basic", "from": { "key_code": "p", "modifiers": { "mandatory": [ "left_control" ], "optional": [ ] } }, "to": [ { "key_code": "close_bracket" } ] }, { "type": "basic", "from": { "key_code": "u", "modifiers": { "mandatory": [ "left_shift", "right_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "open_bracket", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "i", "modifiers": { "mandatory": [ "left_shift", "right_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "close_bracket", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "q", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "1", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "a", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "1" } ] }, { "type": "basic", "from": { "key_code": "w", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "2", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "s", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "2" } ] }, { "type": "basic", "from": { "key_code": "e", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "3", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "d", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "3" } ] }, { "type": "basic", "from": { "key_code": "r", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "4", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "f", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "4" } ] }, { "type": "basic", "from": { "key_code": "t", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "5", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "g", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "5" } ] }, { "type": "basic", "from": { "key_code": "y", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "6", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "h", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "6" } ] }, { "type": "basic", "from": { "key_code": "u", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "7", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "j", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "7" } ] }, { "type": "basic", "from": { "key_code": "i", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "8", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "k", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "8" } ] }, { "type": "basic", "from": { "key_code": "o", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "open_bracket" } ] }, { "type": "basic", "from": { "key_code": "l", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "9" } ] }, { "type": "basic", "from": { "key_code": "p", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "close_bracket" } ] }, { "type": "basic", "from": { "key_code": "semicolon", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "0" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,92 +1,82 @@ { "description": "left shift, misc", "manipulators": [ { "type": "basic", "from": { "key_code": "o", "modifiers": { "mandatory": [ "left_shift", "left_command" ], "optional": [ ] } }, "to": [ { "key_code": "open_bracket", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "p", "modifiers": { "mandatory": [ "left_shift", "left_command" ], "optional": [ ] } }, "to": [ { "key_code": "close_bracket", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "o", "modifiers": { "mandatory": [ "left_shift", "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "open_bracket" } ] }, { "type": "basic", "from": { "key_code": "p", "modifiers": { "mandatory": [ "left_shift", "left_control" ], "optional": [ @@ -96,17 +86,19 @@ }, "to": [ { "key_code": "close_bracket" } ] }, { "type": "basic", "from": { "key_code": "x", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" @@ -115,17 +107,17 @@ }, "to": [ { "key_code": "hyphen" } ] }, { "type": "basic", "from": { "key_code": "c", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" @@ -134,17 +126,17 @@ }, "to": [ { "key_code": "equal_sign" } ] }, { "type": "basic", "from": { "key_code": "v", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" @@ -153,50 +145,60 @@ }, "to": [ { "key_code": "equal_sign", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "b", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "quote" } ] }, { "type": "basic", "from": { "key_code": "slash", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "period" } ] }, { "type": "basic", "from": { "key_code": "backslash", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" @@ -205,16 +207,14 @@ }, "to": [ { "key_code": "comma" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ { "description": "caps_lock := left control / escape", "manipulators": [ { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_control" } ], "to_if_alone": [ { "key_code": "escape" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,173 @@ { "description": "crsr1", "manipulators": [ { "type": "basic", "from": { "key_code": "p", "modifiers": { "mandatory": [ "right_command", "right_option" ], "optional": [ "any" ] } }, "to": [ { "key_code": "p", "modifiers": [ "left_command" ] } ] }, { "type": "basic", "from": { "key_code": "l", "modifiers": { "mandatory": [ "right_command", "right_option" ], "optional": [ "any" ] } }, "to": [ { "key_code": "l", "modifiers": [ "left_command" ] } ] }, { "type": "basic", "from": { "key_code": "semicolon", "modifiers": { "mandatory": [ "right_command", "right_option" ], "optional": [ "any" ] } }, "to": [ { "key_code": "semicolon", "modifiers": [ "left_command" ] } ] }, { "type": "basic", "from": { "key_code": "quote", "modifiers": { "mandatory": [ "right_command", "right_option" ], "optional": [ "any" ] } }, "to": [ { "key_code": "quote", "modifiers": [ "left_command" ] } ] }, { "type": "basic", "from": { "key_code": "p", "modifiers": { "mandatory": [ "right_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "up_arrow" } ] }, { "type": "basic", "from": { "key_code": "l", "modifiers": { "mandatory": [ "right_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "left_arrow" } ] }, { "type": "basic", "from": { "key_code": "semicolon", "modifiers": { "mandatory": [ "right_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "down_arrow" } ] }, { "type": "basic", "from": { "key_code": "quote", "modifiers": { "mandatory": [ "right_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "right_arrow" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,415 @@ { "description": "numbers", "manipulators": [ { "type": "basic", "from": { "key_code": "q", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "1", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "a", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "1" } ] }, { "type": "basic", "from": { "key_code": "w", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "2", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "s", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "2" } ] }, { "type": "basic", "from": { "key_code": "e", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "3", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "d", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "3" } ] }, { "type": "basic", "from": { "key_code": "r", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "4", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "f", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "4" } ] }, { "type": "basic", "from": { "key_code": "t", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "5", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "g", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "5" } ] }, { "type": "basic", "from": { "key_code": "y", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "6", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "h", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "6" } ] }, { "type": "basic", "from": { "key_code": "u", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "7", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "j", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "7" } ] }, { "type": "basic", "from": { "key_code": "i", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "8", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "k", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "8" } ] }, { "type": "basic", "from": { "key_code": "o", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "9", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "l", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "9" } ] }, { "type": "basic", "from": { "key_code": "p", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "0", "modifiers": [ "left_shift" ] } ] }, { "type": "basic", "from": { "key_code": "l", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "0" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,51 @@ { "description": "spacebar", "manipulators": [ { "type": "basic", "from": { "key_code": "spacebar", "modifiers": { "mandatory": [ "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "hyphen", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "spacebar", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "spacebar", "modifiers": [ "left_control" ] } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,45 @@ { "description": "augment tab", "manipulators": [ { "type": "basic", "from": { "key_code": "tab", "modifiers": { "mandatory": [ "right_shift" ], "optional": [ ] } }, "to": [ { "key_code": "grave_accent_and_tilde", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "tab", "modifiers": { "mandatory": [ "right_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "grave_accent_and_tilde" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,56 @@ { "description": "shorten", "manipulators": [ { "type": "basic", "from": { "key_code": "quote", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "return_or_enter" } ] }, { "type": "basic", "from": { "key_code": "slash", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "right_shift" } ] }, { "type": "basic", "from": { "key_code": "backslash", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "delete_or_backspace" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,51 @@ { "description": "spacebar", "manipulators": [ { "type": "basic", "from": { "key_code": "spacebar", "modifiers": { "mandatory": [ "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "hyphen", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "spacebar", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "any" ] } }, "to": [ { "key_code": "spacebar", "modifiers": [ "left_control" ] } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,45 @@ { "description": "augment tab", "manipulators": [ { "type": "basic", "from": { "key_code": "tab", "modifiers": { "mandatory": [ "right_shift" ], "optional": [ ] } }, "to": [ { "key_code": "grave_accent_and_tilde", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "tab", "modifiers": { "mandatory": [ "right_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "grave_accent_and_tilde" } ] } ] } -
val314159 revised this gist
Aug 21, 2020 . 9 changed files with 459 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ #!/usr/bin/env python3 import os, sys from sys import argv from os import system prog = argv.pop(0) frst = argv.pop(0) last = argv.pop() system('cat '+frst) for fn in argv: system('cat '+fn) system('echo ","') pass system('cat '+last) system('echo "]}"') This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ { "title": "my stuff", "rules": [ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ call: clean all all: tmp.out cp tmp.out .. tmp.out: *.json python -um%filter *.json | tee $@ clean: rm -fr tmp.out *~ *.pyc __pycache__ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ { "description": "Change left control (capslock->ctl/tab)", "manipulators": [ { "type": "basic", "from": { "key_code": "left_control", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_control" } ], "to_if_alone": [ { "key_code": "escape" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,49 @@ { "description": "Change command-x to meta-x", "manipulators": [ { "type": "basic", "from": { "key_code": "w", "modifiers": { "mandatory": [ "left_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "x", "modifiers": [ "right_command" ] } ] }, { "type": "basic", "from": { "key_code": "x", "modifiers": { "mandatory": [ "left_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "x", "modifiers": [ "left_option" ] } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,81 @@ { "description": "Cursor keys LtCtl+pl;'", "manipulators": [ { "type": "basic", "from": { "key_code": "l", "modifiers": { "mandatory": [ "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "left_arrow" } ] }, { "type": "basic", "from": { "key_code": "quote", "modifiers": { "mandatory": [ "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "right_arrow" } ] }, { "type": "basic", "from": { "key_code": "p", "modifiers": { "mandatory": [ "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "up_arrow" } ] }, { "type": "basic", "from": { "key_code": "semicolon", "modifiers": { "mandatory": [ "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "down_arrow" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,57 @@ { "description": "Change pgup/pgdn (tab->meta/esc)", "manipulators": [ { "type": "basic", "from": { "key_code": "comma", "modifiers": { "mandatory": [ "right_shift", "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "escape" }, { "key_code": "comma", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "period", "modifiers": { "mandatory": [ "right_shift", "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "escape" }, { "key_code": "period", "modifiers": [ "right_shift" ] } ] } ] } File renamed without changes.This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,220 @@ { "title": "my stuff", "rules": [ { "description": "Change left control (capslock->ctl/tab)", "manipulators": [ { "type": "basic", "from": { "key_code": "left_control", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_control" } ], "to_if_alone": [ { "key_code": "escape" } ] } ] } , { "description": "Change command-x to meta-x", "manipulators": [ { "type": "basic", "from": { "key_code": "w", "modifiers": { "mandatory": [ "left_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "x", "modifiers": [ "right_command" ] } ] }, { "type": "basic", "from": { "key_code": "x", "modifiers": { "mandatory": [ "left_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "x", "modifiers": [ "left_option" ] } ] } ] } , { "description": "Cursor keys LtCtl+pl;'", "manipulators": [ { "type": "basic", "from": { "key_code": "l", "modifiers": { "mandatory": [ "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "left_arrow" } ] }, { "type": "basic", "from": { "key_code": "quote", "modifiers": { "mandatory": [ "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "right_arrow" } ] }, { "type": "basic", "from": { "key_code": "p", "modifiers": { "mandatory": [ "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "up_arrow" } ] }, { "type": "basic", "from": { "key_code": "semicolon", "modifiers": { "mandatory": [ "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "down_arrow" } ] } ] } , { "description": "Change pgup/pgdn (tab->meta/esc)", "manipulators": [ { "type": "basic", "from": { "key_code": "comma", "modifiers": { "mandatory": [ "right_shift", "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "escape" }, { "key_code": "comma", "modifiers": [ "right_shift" ] } ] }, { "type": "basic", "from": { "key_code": "period", "modifiers": { "mandatory": [ "right_shift", "left_control" ], "optional": [ "any" ] } }, "to": [ { "key_code": "escape" }, { "key_code": "period", "modifiers": [ "right_shift" ] } ] } ] } ]} -
val314159 revised this gist
Aug 19, 2020 . 1 changed file with 243 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,244 @@ { "title": "xChange caps_lock key (rev 4)", "rules": [ { "description": "Change caps_lock key to command+control+option+shift if pressed with other keys", "manipulators": [ { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_shift", "modifiers": [ "left_command", "left_control", "left_option" ] } ], "to_if_alone": [ { "hold_down_milliseconds": 100, "key_code": "caps_lock" } ] } ] }, { "description": "Change caps_lock key to command+control+option+shift. (Post escape key when pressed alone)", "manipulators": [ { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_shift", "modifiers": [ "left_command", "left_control", "left_option" ] } ], "to_if_alone": [ { "key_code": "escape" } ] } ] }, { "description": "Change caps_lock key to command+control+option+shift. (Post f19 key when pressed alone)", "manipulators": [ { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_shift", "modifiers": [ "left_command", "left_control", "left_option" ] } ], "to_if_alone": [ { "key_code": "f19" } ] } ] }, { "description": "Change caps_lock key to command+control+option+shift. (Use shift+caps_lock as caps_lock)", "manipulators": [ { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "mandatory": [ "shift" ], "optional": [ "caps_lock" ] } }, "to": [ { "key_code": "caps_lock" } ] }, { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_shift", "modifiers": [ "left_command", "left_control", "left_option" ] } ] } ] }, { "description": "Change caps_lock to control if pressed with other keys, to escape if pressed alone.", "manipulators": [ { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_control" } ], "to_if_alone": [ { "key_code": "escape" } ] } ] }, { "description": "Change caps_lock to control if pressed with other keys. (rev 2)", "manipulators": [ { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_control" } ], "to_if_alone": [ { "key_code": "caps_lock", "hold_down_milliseconds": 500 } ] } ] }, { "description": "Disable caps_lock delay (rev 1)", "manipulators": [ { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "caps_lock", "hold_down_milliseconds": 200 }, { "key_code": "vk_none" } ] } ] }, { "description": "Map Left Option + Spacebar to Enter", "manipulators": [ { "type": "basic", "from": { "modifiers": { "mandatory": [ "left_alt" ] }, "key_code": "spacebar" }, "to": [ { "repeat": true, "key_code": "return_or_enter" } ] } ] } ] } -
val314159 created this gist
Aug 19, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ { }