-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'target/main' into mlewand-caps-settings
- Loading branch information
Showing
62 changed files
with
3,966 additions
and
3,281 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -388,7 +388,7 @@ | |
"to": [ | ||
{ | ||
"mouse_key": { | ||
"speed_multiplier": 2.0 | ||
"speed_multiplier": 2 | ||
} | ||
} | ||
], | ||
|
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
// JavaScript should be written in ECMAScript 5.1. | ||
|
||
function main() { | ||
console.log( | ||
JSON.stringify( | ||
{ | ||
title: 'Change caps_lock key (rev 5)', | ||
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, | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
null, | ||
' ' | ||
) | ||
) | ||
} | ||
|
||
main() |
Oops, something went wrong.