Commit Graph

125 Commits

Author SHA1 Message Date
Hiltjo Posthuma b25e55e462 bump version to 0.3
... and change 0.3.0 to be consistent to the 0.2 and 0.1 release.
2021-03-28 22:54:23 +02:00
Stacy Harper 1d5e9346e8 Add missing keys on lazy layers
As I used it, it really feels like ctrl and alt should be accessible
Esc now replace shift on symbol page (as shift is useless here anyway)
As we now got keys on the two first layers, I removed the smart
old layer.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-28 19:08:49 +02:00
Hiltjo Posthuma 4c4a085580 code-style 2021-03-28 15:24:42 +02:00
Hiltjo Posthuma d509e189d4 usage already exits, remove exit(2)
This now exits with the same status 1.
Document exit status in the man page.
2021-03-28 15:19:38 +02:00
Hiltjo Posthuma d81fe4c879 bump LICENSE year 2021-03-28 15:13:04 +02:00
Hiltjo Posthuma c91cf4a12a rm unused variables 2021-03-28 15:12:30 +02:00
Hiltjo Posthuma 1cc5f87511 usage: add -g information entry and fix newline after -H option 2021-03-28 15:10:40 +02:00
Hiltjo Posthuma d6026943d3 improve command-line parsing, fix crash with -fn without argument
Print the usage information instead of silently continuing.
On an invalid argument print the invalid argument and usage.
2021-03-28 15:05:56 +02:00
Hiltjo Posthuma 55de8b5184 comment style 2021-03-28 15:03:09 +02:00
Hiltjo Posthuma 7c06a0caf5 code-style changes 2021-03-28 15:02:25 +02:00
Hiltjo Posthuma 8f6a7b5e42 use sizeof(buffer) instead of hardcoded 32 2021-03-28 14:58:19 +02:00
Hiltjo Posthuma 4b5a61b275 add check for debug flag in printdbg() function itself 2021-03-28 14:56:05 +02:00
Hiltjo Posthuma 7980cb5f51 estrdup errors out, so remove the condition 2021-03-28 14:52:03 +02:00
Hiltjo Posthuma 9c492b6913 some code-style changes 2021-03-28 14:51:00 +02:00
Hiltjo Posthuma ea4b058833 fix unnecesary c99-ism, fixes compilation on OpenBSD using gcc 2021-03-28 14:42:38 +02:00
Hiltjo Posthuma d19a80dfe5 put estrdup in util and use die() instead of BSD err() 2021-03-28 14:41:32 +02:00
Maarten van Gompel b80819aa3f Various indentation fixes for a more consistent style 2021-03-28 14:39:58 +02:00
Maarten van Gompel 02f13a74c3 ternary operator was used in the wrong order 2021-03-28 14:39:51 +02:00
Maarten van Gompel f2322e9c0e Added a util function estrdup() to check all memory allocations 2021-03-28 14:39:45 +02:00
Maarten van Gompel 10024fc963 removed debugging flag
This patch series is to be applied on top of the 24 I already sent and
addressed the feedback received thus-far.
2021-03-28 14:39:39 +02:00
Maarten van Gompel 2fa04e74fe fixed double free error 2021-03-28 14:35:01 +02:00
Maarten van Gompel 5fd07406ae Updated the documentation to describe the new functionality 2021-03-28 14:35:01 +02:00
Maarten van Gompel 444ceabde3 cleanup and reworking some of the logic 2021-03-28 14:35:01 +02:00
Maarten van Gompel a43bf5c4c1 fix for output key on release 2021-03-28 14:35:01 +02:00
Reed Wade 4ec3b00d6c Rebuild on layout update
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-28 14:35:01 +02:00
Reed Wade 7a6742e6e4 fix the highlighted key on dragged touch
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-28 14:35:01 +02:00
Reed Wade b6055b3310 Added mobile-simple layout
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-28 14:35:01 +02:00
tetrakist 8c28fd15f3 Add Xresources support.
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-28 14:35:01 +02:00
Maarten van Gompel 869a4328c9 fixed print output mode 2021-03-28 14:35:01 +02:00
Maarten van Gompel 9b5ebd8447 adapted plain layout and legacy layouts to new structure 2021-03-28 14:35:01 +02:00
Maarten van Gompel 72b936baf6 Allow toggling modifier keys even when an overlay is displayed 2021-03-28 14:35:01 +02:00
Maarten van Gompel bd3620acf4 fix for earlier overlay width patch (there was a conflict with multirow overlays) 2021-03-28 14:35:01 +02:00
Maarten van Gompel c2251315e5 Simpler implementation for keeping track overlay keys (solution by stacy) 2021-03-28 14:35:01 +02:00
Maarten van Gompel 174c86d8fa Implemented key output option to stdout 2021-03-28 14:35:01 +02:00
Maarten van Gompel d06db9eb4f Added a second key label for the shift-activated symbols 2021-03-28 14:35:01 +02:00
Reed Wade 6633915997 Usefull if you want to skip somekeys that you want still displayed under the overlay.
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-28 14:35:01 +02:00
Reed Wade d10af923a3 Extended key definition to allow setting explicit symbol for shift modifier.
This allow key definitions as :

{ "?", XK_slash, 1, XK_Shift_L },

Which will press <S-/> wich output `?`

Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-28 14:35:01 +02:00
Maarten van Gompel 3be1e21c9f Implementing a print output mode and ability to not simulate keypresses for X 2021-03-28 14:35:01 +02:00
Maarten van Gompel e9208cb088 Applied different styling to overlays 2021-03-28 14:35:01 +02:00
Maarten van Gompel 7f59daca5f bump version to 0.3.0 2021-03-28 14:35:01 +02:00
Maarten van Gompel 6dc8c78b82 Implemented press-on-release and repetition after delay (the latter only for keys without overlay) 2021-03-28 14:35:01 +02:00
Maarten van Gompel 9fd94b637a Removed grid drwawing and set different slightly theme for abc keys 2021-03-28 14:35:01 +02:00
Maarten van Gompel 6f3308b327 Added an extra row to the mobile-intl layout for numbers/punctuation, reshuffling some keys, added navigation layer and disabled the functions layer 2021-03-28 14:35:01 +02:00
Jochen Sprickerhof 0ea4559388 Force installing executable
So we don't fail if it is executed at the same time.
2021-02-25 19:16:09 +01:00
Hiltjo Posthuma 84715dd6c6 bump version to 0.2.2 2020-12-11 18:37:15 +01:00
Maarten van Gompel 1fff13a1b4 fixed a bug that reset the layer to layer one after hiding the overlay 2020-12-11 18:25:53 +01:00
Maarten van Gompel 79ff93369c fixed russian keyboard layout in mobile-intl, Р key was missing, moved З to an overlay on е because of lack of space 2020-12-11 18:25:44 +01:00
Hiltjo Posthuma 02a2f77fbb config.mk: set DEFAULT_SOURCE
This suppresses warnings about usleep and strdup on Linux glibc and musl.

(Also tested on OpenBSD and FreeBSD, which didn't give such a warning).

Thanks to quinq for reporting it.
2020-09-18 12:59:17 +02:00
Maarten van Gompel 3a51eafd3a Make install fix: install the actual compiled layout 2020-09-16 23:31:37 +02:00
Hiltjo Posthuma 025a846cea Makefile: dist: add drw.h and util.h 2020-09-13 22:29:42 +02:00