Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "title": "Map Left Control 2x to Caps Lock",
- "rules": [
- {
- "description": "Map Left Control 2x to Caps Lock",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "key_code": "left_control",
- "modifiers": {
- "optional": [
- "any"
- ]
- }
- },
- "to": [
- {
- "key_code": "caps_lock"
- }
- ],
- "conditions": [
- {
- "type": "variable_if",
- "name": "left_control pressed",
- "value": 1
- }
- ]
- },
- {
- "type": "basic",
- "from": {
- "key_code": "left_control",
- "modifiers": {
- "optional": [
- "any"
- ]
- }
- },
- "to": [
- {
- "set_variable": {
- "name": "left_control pressed",
- "value": 1
- }
- },
- {
- "key_code": "left_control"
- }
- ],
- "to_delayed_action": {
- "to_if_invoked": [
- {
- "set_variable": {
- "name": "left_control pressed",
- "value": 0
- }
- }
- ],
- "to_if_canceled": [
- {
- "set_variable": {
- "name": "left_control pressed",
- "value": 0
- }
- }
- ]
- }
- }
- ]
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement