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. layer entries.
E.G E.G
capslock = layer(nav)
[nav:C] ```
capslock = layer(nav)
h = left [nav:C]
l = right
will cause 'control+h' to produce 'left' (rather than 'C-left'), while h = left
'control+capslock+h' will produce 'C-left', as one might intuit. 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. - 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] 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. - 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: Rationale:
@ -99,7 +102,8 @@ and enhancements.
[meta-control:M-C] [meta-control:M-C]
Note that in the above sample "meta" does not need to be 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 - Eliminated -d

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

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

Loading…
Cancel
Save