config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

nav-layer.json (2333B)


      1 {
      2   "title": "navigation layer",
      3   "rules": [
      4     {
      5       "description": "navigation layer",
      6       "manipulators": [
      7 	{
      8 	  "from": {
      9             "key_code": "caps_lock",
     10             "modifiers": {
     11               "optional": [
     12 		"any"
     13               ]
     14             }
     15 	  },
     16 	  "to": [
     17             {
     18               "set_variable": {
     19 		"name": "caps_lock pressed",
     20 		"value": 1
     21               }
     22             }
     23 	  ],
     24 	  "to_after_key_up": [
     25             {
     26               "set_variable": {
     27 		"name": "caps_lock pressed",
     28 		"value": 0
     29               }
     30             }
     31 	  ],
     32 	  "to_if_alone": [
     33             {
     34               "key_code": "caps_lock"
     35             }
     36 	  ],
     37 	  "type": "basic"
     38 	},
     39 	{
     40 	  "conditions": [
     41             {
     42               "name": "caps_lock pressed",
     43               "type": "variable_if",
     44               "value": 1
     45             }
     46 	  ],
     47 	  "from": {
     48             "key_code": "k",
     49             "modifiers": {
     50               "optional": [
     51 		"any"
     52               ]
     53             }
     54 	  },
     55 	  "to": [
     56             {
     57               "key_code": "left_arrow"
     58             }
     59 	  ],
     60 	  "type": "basic"
     61 	},
     62 	{
     63 	  "conditions": [
     64             {
     65               "name": "caps_lock pressed",
     66               "type": "variable_if",
     67               "value": 1
     68             }
     69 	  ],
     70 	  "from": {
     71             "key_code": "l",
     72             "modifiers": {
     73               "optional": [
     74 		"any"
     75               ]
     76             }
     77 	  },
     78 	  "to": [
     79             {
     80               "key_code": "down_arrow"
     81             }
     82 	  ],
     83 	  "type": "basic"
     84 	},
     85 	{
     86 	  "conditions": [
     87             {
     88               "name": "caps_lock pressed",
     89               "type": "variable_if",
     90               "value": 1
     91             }
     92 	  ],
     93 	  "from": {
     94             "key_code": "o",
     95             "modifiers": {
     96               "optional": [
     97 		"any"
     98               ]
     99             }
    100 	  },
    101 	  "to": [
    102             {
    103               "key_code": "up_arrow"
    104             }
    105 	  ],
    106 	  "type": "basic"
    107 	},
    108 	{
    109 	  "conditions": [
    110             {
    111               "name": "caps_lock pressed",
    112               "type": "variable_if",
    113               "value": 1
    114             }
    115 	  ],
    116 	  "from": {
    117             "key_code": "semicolon",
    118             "modifiers": {
    119               "optional": [
    120 		"any"
    121               ]
    122             }
    123 	  },
    124 	  "to": [
    125             {
    126               "key_code": "right_arrow"
    127             }
    128 	  ],
    129 	  "type": "basic"
    130 	}
    131       ]
    132     }
    133   ]
    134 }