Skip to content

Commit

Permalink
Merge pull request #1717 from thooams/master
Browse files Browse the repository at this point in the history
Add caps lock  + jklm with bepo (tsrn) version
  • Loading branch information
tekezo authored Sep 27, 2024
2 parents dbd7073 + 6c7a192 commit d26257d
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,9 @@
{
"path": "json/ru_keyboard_remapping_small_yu-on-close_bracket.json",
"extra_description_path": "extra_descriptions/ru_keyboard_remapping_small_yu-on-close_bracket.json.html"
},
{
"path": "json/caps_lock_bepo_tsrn.json"
}
]
},
Expand Down
134 changes: 134 additions & 0 deletions public/json/caps_lock_bepo_tsrn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{
"title": "Caps Lock jklm (tsrn en bepo) [thooams]",
"rules": [
{
"description": "Caps Lock jklm (tsrn en bepo)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"set_variable": {
"name": "caps_lock pressed",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "caps_lock pressed",
"value": 0
}
}
],
"to_if_alone": [
{
"key_code": "caps_lock"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "caps_lock pressed",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "j",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "caps_lock pressed",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "k",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "caps_lock pressed",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "l",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "caps_lock pressed",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "semicolon",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
}
]
}

0 comments on commit d26257d

Please sign in to comment.