Commit Graph

83 Commits

Author SHA1 Message Date
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 2fa04e74fe fixed double free error 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 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
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 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 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
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
Hiltjo Posthuma 0bd17df5ed a few more tweaks 2020-08-05 00:09:41 +02:00
Hiltjo Posthuma 73f0edf709 some code-style consistency changes + small tweaks 2020-08-04 23:52:57 +02:00
Hiltjo Posthuma 9f5404990d fixup strdup() from the last patch 2020-08-04 23:12:03 +02:00
Maarten van Gompel 3d03b522e0 cleaned up code style, fixed buffer overflow in layers configuration, added a printdbg function. 2020-08-04 23:08:13 +02:00
Maarten van Gompel 13d20da8ef Made the old layouts compatible with the new svkbd, re-added the old english layout that was removed, and re-added the initial sxmo layout and renamed the mobile layouts. Documentation updated accordingly. Final cleanup and fixes for the whole patch series. 2020-08-02 18:00:42 +02:00
Maarten van Gompel eae90f28d9 fixed the select() logic in run() to handle sigterm situations 2020-08-02 18:00:40 +02:00
Maarten van Gompel 12fe4c8923 adding some minor error catching 2020-08-02 18:00:39 +02:00
Maarten van Gompel 4dab556580 Added a dialer/numpad keyboard, added the ability to handle layouts with less keys/different layouts. Extra configurability: select layout on startup, customisable height factor. 2020-08-02 18:00:35 +02:00
Maarten van Gompel 99935775af added an extra key column (alt now on keyboard by default), added cyrillic keymap, added a toggle to enable/disable overlays, added quick toggle buttons to toggle primary two layers. Added some configurability using command line parameters and environment variables. 2020-08-02 18:00:32 +02:00
Maarten van Gompel 48994f125e Added overlays (appearing on long press), multiple layer support (rather than just a toggle) with new layers, style changes 2020-08-02 18:00:31 +02:00
Miles Alan b488ae6410 Fix SIGTERM functionality by making sure to sync before free in cleanup() 2020-08-02 18:00:30 +02:00
Maarten van Gompel c8ee269e73 Added Xft support (in the same fashion as done in dmenu by Hiltjo Posthuma), Xinerama support, changed colors and key layout
Signed-off-by: Miles Alan <m@milesalan.com>
2020-08-02 18:00:00 +02:00
Miles Alan edfd50cdcb Run XFlush instead of XSync before starting main loop; fixes bug where rending of keys fails when used in conjunction w/ dwm dock patch 2020-08-02 17:59:59 +02:00
Miles Alan 819f92950e Fix SIGTERM handler - flip terminate flag in sigterm handler & cleanup properly
Modify run function to use select() with a timeout since X events will be
blocked otherwise and terminate wouldn't apply for a while.
2020-08-02 17:59:44 +02:00
Miles Alan 6e5bf2d8e4 Move layouts to single layout.h file & toggle layers via memcpy w/ XK_Cancel 2020-08-02 17:59:28 +02:00
Hiltjo Posthuma 1c75314faf cleanup Makefile, add initial man page svkbd.1 2020-05-29 14:46:33 +02:00
Christoph Lohmann fc267005ce Bump year. 2016-01-01 14:19:33 +01:00
Christoph Lohmann ce0779e5c9 Unpress modifiers so there is no problem when exiting svkbd inbetween. 2012-10-27 00:01:15 +02:00