config

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

numpad.json (4080B)


      1 {
      2   "title": "numpad layer",
      3   "rules": [
      4     {
      5       "description": "numpad 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": "m",
     49 	    "modifiers": {
     50 	      "optional": [
     51 		"any"
     52 	      ]
     53 	    }
     54 	  },
     55 	  "to": [
     56 	    {
     57 	      "key_code": "keypad_0"
     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": "comma",
     72 	    "modifiers": {
     73 	      "optional": [
     74 		"any"
     75 	      ]
     76 	    }
     77 	  },
     78 	  "to": [
     79 	    {
     80 	      "key_code": "keypad_1"
     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": "period",
     95 	    "modifiers": {
     96 	      "optional": [
     97 		"any"
     98 	      ]
     99 	    }
    100 	  },
    101 	  "to": [
    102 	    {
    103 	      "key_code": "keypad_2"
    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": "slash",
    118 	    "modifiers": {
    119 	      "optional": [
    120 		"any"
    121 	      ]
    122 	    }
    123 	  },
    124 	  "to": [
    125 	    {
    126 	      "key_code": "keypad_3"
    127 	    }
    128 	  ],
    129 	  "type": "basic"
    130 	},
    131 	{
    132 	  "conditions": [
    133 	    {
    134 	      "name": "caps_lock pressed",
    135 	      "type": "variable_if",
    136 	      "value": 1
    137 	    }
    138 	  ],
    139 	  "from": {
    140 	    "key_code": "l",
    141 	    "modifiers": {
    142 	      "optional": [
    143 		"any"
    144 	      ]
    145 	    }
    146 	  },
    147 	  "to": [
    148 	    {
    149 	      "key_code": "keypad_4"
    150 	    }
    151 	  ],
    152 	  "type": "basic"
    153 	},
    154 	{
    155 	  "conditions": [
    156 	    {
    157 	      "name": "caps_lock pressed",
    158 	      "type": "variable_if",
    159 	      "value": 1
    160 	    }
    161 	  ],
    162 	  "from": {
    163 	    "key_code": "semicolon",
    164 	    "modifiers": {
    165 	      "optional": [
    166 		"any"
    167 	      ]
    168 	    }
    169 	  },
    170 	  "to": [
    171 	    {
    172 	      "key_code": "keypad_5"
    173 	    }
    174 	  ],
    175 	  "type": "basic"
    176 	},
    177 	{
    178 	  "conditions": [
    179 	    {
    180 	      "name": "caps_lock pressed",
    181 	      "type": "variable_if",
    182 	      "value": 1
    183 	    }
    184 	  ],
    185 	  "from": {
    186 	    "key_code": "quote",
    187 	    "modifiers": {
    188 	      "optional": [
    189 		"any"
    190 	      ]
    191 	    }
    192 	  },
    193 	  "to": [
    194 	    {
    195 	      "key_code": "keypad_6"
    196 	    }
    197 	  ],
    198 	  "type": "basic"
    199 	},
    200 	{
    201 	  "conditions": [
    202 	    {
    203 	      "name": "caps_lock pressed",
    204 	      "type": "variable_if",
    205 	      "value": 1
    206 	    }
    207 	  ],
    208 	  "from": {
    209 	    "key_code": "o",
    210 	    "modifiers": {
    211 	      "optional": [
    212 		"any"
    213 	      ]
    214 	    }
    215 	  },
    216 	  "to": [
    217 	    {
    218 	      "key_code": "keypad_7"
    219 	    }
    220 	  ],
    221 	  "type": "basic"
    222 	},
    223 	{
    224 	  "conditions": [
    225 	    {
    226 	      "name": "caps_lock pressed",
    227 	      "type": "variable_if",
    228 	      "value": 1
    229 	    }
    230 	  ],
    231 	  "from": {
    232 	    "key_code": "p",
    233 	    "modifiers": {
    234 	      "optional": [
    235 		"any"
    236 	      ]
    237 	    }
    238 	  },
    239 	  "to": [
    240 	    {
    241 	      "key_code": "keypad_8"
    242 	    }
    243 	  ],
    244 	  "type": "basic"
    245 	},
    246 	{
    247 	  "conditions": [
    248 	    {
    249 	      "name": "caps_lock pressed",
    250 	      "type": "variable_if",
    251 	      "value": 1
    252 	    }
    253 	  ],
    254 	  "from": {
    255 	    "key_code": "open_bracket",
    256 	    "modifiers": {
    257 	      "optional": [
    258 		"any"
    259 	      ]
    260 	    }
    261 	  },
    262 	  "to": [
    263 	    {
    264 	      "key_code": "keypad_9"
    265 	    }
    266 	  ],
    267 	  "type": "basic"
    268 	},
    269 	{
    270 	  "conditions": [
    271 	    {
    272 	      "name": "caps_lock pressed",
    273 	      "type": "variable_if",
    274 	      "value": 1
    275 	    }
    276 	  ],
    277 	  "from": {
    278 	    "key_code": "close_bracket",
    279 	    "modifiers": {
    280 	      "optional": [
    281 		"any"
    282 	      ]
    283 	    }
    284 	  },
    285 	  "to": [
    286 	    {
    287 	      "key_code": "keypad_0"
    288 	    }
    289 	  ],
    290 	  "type": "basic"
    291 	}
    292   ]
    293 }