diff --git a/DESIGN.md b/DESIGN.md index afe7c27..7a1f27c 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -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 diff --git a/keyd.service b/keyd.service index 249202a..14aa26d 100644 --- a/keyd.service +++ b/keyd.service @@ -6,7 +6,6 @@ After=local-fs.target [Service] Type=simple ExecStart=/usr/bin/keyd -ExecReload=/bin/kill -USR1 $MAINPID [Install] WantedBy=sysinit.target diff --git a/src/device.c b/src/device.c index dff6f40..f8e2694 100644 --- a/src/device.c +++ b/src/device.c @@ -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; } }