Skip to content

Commit

Permalink
Merge branch 'main' into fix-neo2-layer-2-lock
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo authored Oct 19, 2024
2 parents 4149e01 + 11aed52 commit 7b1a137
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
41 changes: 41 additions & 0 deletions public/json/shift_on_hold_space.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"title": "Shift on hold space, space on tap",
"rules": [
{
"description": "Change space to left shift if held and space pressed alone",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "spacebar",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift"
}
],
"to_if_alone": [
{
"key_code": "spacebar"
}
],
"type": "basic"
}
]
}
]
}
37 changes: 37 additions & 0 deletions src/json/shift_on_hold_space.json.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// JavaScript should be written in ECMAScript 5.1.

function main() {
console.log(
JSON.stringify(
{
title: 'Shift on hold space, space on tap',
rules: [
{
description: 'Change space to left shift if held and space pressed alone',
manipulators: [
{
conditions: [
{
identifiers: [{ vendor_id: 1452 }],
type: 'device_if',
},
],
from: {
key_code: 'spacebar',
modifiers: { optional: ['any'] },
},
to: [{ key_code: 'left_shift' }],
to_if_alone: [{ key_code: 'spacebar' }],
type: 'basic',
},
],
},
],
},
null,
' '
)
)
}

main()

0 comments on commit 7b1a137

Please sign in to comment.