master
Raheman Vaiya 4 years ago
parent 301ac8d98b
commit 44844b7a23
  1. 20
      DESIGN.md
  2. 1
      keyd.service
  3. 2
      src/device.c

@ -39,15 +39,18 @@ and enhancements.
layer entries.
E.G
capslock = layer(nav)
[nav:C]
```
capslock = layer(nav)
h = left
l = right
[nav:C]
will cause 'control+h' to produce 'left' (rather than 'C-left'), while
'control+capslock+h' will produce 'C-left', as one might intuit.
h = left
l = right
```
will cause `control+h` to produce `left` (rather than `C-left`), while
`control+capslock+h` will produce `C-left`, as one might intuit.
- Abolished layer types. Notably, the concept of a 'layout' no longer exists.
Bindings are drawn from layers on the basis of activation order with [main]
@ -77,7 +80,7 @@ and enhancements.
- Special characters within macros like ) and \ must be escaped with a backslash.
- Modifier sequences (e.g 'C-M') are no longer valid layers by default.
- Modifier sequences (e.g `C-M`) are no longer valid layers by default.
Rationale:
@ -99,7 +102,8 @@ and enhancements.
[meta-control:M-C]
Note that in the above sample "meta" does not need to be
explicitly defined, since full modifier names are
explicitly defined, since full modifier names are still
mapped to their eponymously named layers.
- Eliminated -d

@ -6,7 +6,6 @@ After=local-fs.target
[Service]
Type=simple
ExecStart=/usr/bin/keyd
ExecReload=/bin/kill -USR1 $MAINPID
[Install]
WantedBy=sysinit.target

@ -256,7 +256,7 @@ struct device_event *device_read_event(struct device *dev)
ev.code = KEYD_FN;
else {
fprintf(stderr, "ERROR: unsupported evdev code: 0x%x\n", ev.code);
ev.code = 0;
return NULL;
}
}

Loading…
Cancel
Save