[hackers] [svkbd PATCH] Xft + Layers + Overlays + Mobile

2020-07-24 Thread Maarten van Gompel
This is a big patch for svkbd, split into six parts to keep history from getting too convoluted. This message summarizes all of the changes. The overall intention is to make svkbd viable keyboard on a smartphone (the pinephone in particular). Svkbd is the keyboard of choice in the SXMO project (

[hackers] [svkbd] [PATCH] missing patch 1/6

2020-07-24 Thread Maarten van Gompel
Something went wrong with my earlier patch send, part 1 of 6 didn't get send because I am not the author. Please educate me on how to submit patches containing commits by third parties if this goes wrong again :) -- Maarten van Gompel proy...@anaproy.nl https://proycon.anaproy.nl

[hackers] [svkbd] [PATCH 1/6] Add custom layouts. Move layouts to single layout.h file & toggle layers via memcpy w/ XK_Cancel. Clean up secondary layout positioning LRDU properly & blanking placehold

2020-07-24 Thread Maarten van Gompel
(Note: This commit is by Miles Alan and should appear in the git history as such! I'm probably missing something on how to properly submit this... apologies!) Fix SIGTERM handler - flip terminate flag in sigterm handler & cleanup properly Modify run function to use select() with a timeout since

[hackers] [PATCH 4/6] 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 lay

2020-07-24 Thread Maarten van Gompel
--- README| 63 --- layout.sxmo.h | 168 -- svkbd.c | 165 - 3 files changed, 297 insertions(+), 99 deletions(-) diff --git a/README b/README index f1f2b82..fd0e4d9 10064

[hackers] [PATCH 5/6] 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-07-24 Thread Maarten van Gompel
--- README.md | 87 config.def.h | 1 + layout.sxmo.h | 39 +- svkbd.c | 107 +- 4 files changed, 205 insertions(+), 29 deletions(-) create mode 100644 README.md diff --git a/R

[hackers] [PATCH 1/6] Add custom layouts. Move layouts to single layout.h file & toggle layers via memcpy w/ XK_Cancel. Clean up secondary layout positioning LRDU properly & blanking placeholders.

2020-07-24 Thread Maarten van Gompel
From: Miles Alan 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. Run XFlush instead of XSync before starting main loop; fixes bug

[hackers] [PATCH 3/6] Added overlays (appearing on long press), multiple layer support (rather than just a toggle) with new layers, style changes

2020-07-24 Thread Maarten van Gompel
--- config.def.h | 9 +- layout.sxmo.h | 291 +-- svkbd.c | 338 +++--- 3 files changed, 582 insertions(+), 56 deletions(-) diff --git a/config.def.h b/config.def.h index 0d4172d..42d0c38 100644 --- a/con

[hackers] [PATCH 2/6] Added Xft support (in the same fashion as done in dmenu by Hiltjo Posthuma), Xinerama support, changed colors and key layout

2020-07-24 Thread Maarten van Gompel
Consortium License © 2011 Christoph Lohmann <2...@r-36.net> © 2008-2011 Enno Boland +© 2020 Maarten van Gompel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/Mak

[hackers] [PATCH 6/6] 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. Documentation updated accordingly. Fin

2020-07-24 Thread Maarten van Gompel
--- README | 87 layout.arrows.h | 18 +- layout.de.h | 18 +- layout.en.h | 84 layout.intl.h | 522 layout.ru.h | 17 +- layout.sh.h | 17 +- layout.sxmo.h | 452 +++-

Re: [hackers] [PATCH 1/6] Add custom layouts. Move layouts to single layout.h file & toggle layers via memcpy w/ XK_Cancel. Clean up secondary layout positioning LRDU properly & blanking placeholders.

2020-08-02 Thread Maarten van Gompel
Hi Hiltjo et al, Thanks for your feedback. It took a bit before I could dive back into it. Comments inline: On 20-07-25 01:26, Hiltjo Posthuma wrote: > On Fri, Jul 24, 2020 at 09:49:55PM +0200, Maarten van Gompel wrote: > > From: Miles Alan > > > > Fix SIGTERM handler - f

[hackers] [svkbd] Xft + Layers + Overlays + Mobile

2020-08-02 Thread Maarten van Gompel
This is v2 of a big patch for svkbd. The overall intention is to make svkbd viable keyboard on a smartphone (the pinephone in particular). Svkbd is the keyboard of choice in the SXMO project (https://sr.ht/~mil/Sxmo/) by Miles Alan. On request by Hiltjo I squashed less commits so the incremental h

[hackers] [PATCH v2 03/14] Clean up secondary layout positioning LRDU properly & blanking placeholders

2020-08-02 Thread Maarten van Gompel
From: Miles Alan --- layout.sxmo.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/layout.sxmo.h b/layout.sxmo.h index cd4afb6..a13e706 100644 --- a/layout.sxmo.h +++ b/layout.sxmo.h @@ -80,14 +80,14 @@ static Key keys_symbols[40] = { { 0 }, /* New row */ -

[hackers] [PATCH v2 01/14] Add custom layouts

2020-08-02 Thread Maarten van Gompel
From: Miles Alan --- layout.en.h | 118 +-- layout.symbols.h | 58 +++ 2 files changed, 111 insertions(+), 65 deletions(-) create mode 100644 layout.symbols.h diff --git a/layout.en.h b/layout.en.h index b7291b5..2c8cd57 100

[hackers] [PATCH v2 07/14] Added Xft support (in the same fashion as done in dmenu by Hiltjo Posthuma), Xinerama support, changed colors and key layout

2020-08-02 Thread Maarten van Gompel
/LICENSE @@ -2,6 +2,7 @@ MIT/X Consortium License © 2011 Christoph Lohmann <2...@r-36.net> © 2008-2011 Enno Boland +© 2020 Maarten van Gompel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softw

[hackers] [PATCH v2 08/14] Fix SIGTERM functionality by making sure to sync before free in cleanup()

2020-08-02 Thread Maarten van Gompel
From: Miles Alan --- svkbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svkbd.c b/svkbd.c index e5319e1..e3f70b0 100644 --- a/svkbd.c +++ b/svkbd.c @@ -196,9 +196,9 @@ cleanup(void) { for (i = 0; i < SchemeLast; i++) free(scheme[i]); - drw

[hackers] [PATCH v2 05/14] 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 Thread Maarten van Gompel
From: Miles Alan --- svkbd.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/svkbd.c b/svkbd.c index 27e2af2..7d93d78 100644 --- a/svkbd.c +++ b/svkbd.c @@ -258,7 +258,6 @@ drawkeyboard(void) { if(keys[i].keysym != 0)

[hackers] [PATCH v2 06/14] Add pipe key to backslash key

2020-08-02 Thread Maarten van Gompel
From: Miles Alan --- layout.sxmo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout.sxmo.h b/layout.sxmo.h index a13e706..52ce781 100644 --- a/layout.sxmo.h +++ b/layout.sxmo.h @@ -76,7 +76,7 @@ static Key keys_symbols[40] = { { ",<", XK_comma, 1 }, { ".>", XK_per

[hackers] [PATCH v2 10/14] 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 tw

2020-08-02 Thread Maarten van Gompel
--- README| 31 +++--- layout.sxmo.h | 168 -- svkbd.c | 164 +++- 3 files changed, 267 insertions(+), 96 deletions(-) diff --git a/README b/README index f1f2b82..89ca775 100644 --- a/RE

[hackers] [PATCH v2 12/14] adding some minor error catching

2020-08-02 Thread Maarten van Gompel
--- svkbd.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/svkbd.c b/svkbd.c index f27e229..aab6049 100644 --- a/svkbd.c +++ b/svkbd.c @@ -886,6 +886,7 @@ main(int argc, char *argv[]) { const char* layers_env = getenv("SVKBD_LAYERS"); if (layers_env

[hackers] [PATCH v2 09/14] Added overlays (appearing on long press), multiple layer support (rather than just a toggle) with new layers, style changes

2020-08-02 Thread Maarten van Gompel
--- config.def.h | 9 +- layout.sxmo.h | 291 +-- svkbd.c | 338 +++--- 3 files changed, 582 insertions(+), 56 deletions(-) diff --git a/config.def.h b/config.def.h index 0d4172d..42d0c38 100644 --- a/con

[hackers] [PATCH v2 14/14] 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. Do

2020-08-02 Thread Maarten van Gompel
--- README| 66 -- README.md | 87 ++ config.mk | 2 +- layout.arrows.h | 18 +++- layout.de.h | 18 +++- layout.en.h

[hackers] [PATCH v2 13/14] fixed the select() logic in run() to handle sigterm situations

2020-08-02 Thread Maarten van Gompel
--- svkbd.c | 40 ++-- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/svkbd.c b/svkbd.c index aab6049..ada2b88 100644 --- a/svkbd.c +++ b/svkbd.c @@ -208,27 +208,6 @@ void cleanup(void) { int i; - // E.g. Generally in scripts we

[hackers] [PATCH v2 11/14] Added a dialer/numpad keyboard, added the ability to handle layouts with less keys/different layouts. Extra configurability: select layout on startup, customisable height fa

2020-08-02 Thread Maarten van Gompel
--- README| 7 config.def.h | 1 + layout.sxmo.h | 39 +- svkbd.c | 107 +- 4 files changed, 125 insertions(+), 29 deletions(-) diff --git a/README b/README index 89ca775..266d112 100644 --- a/README +++ b/RE

[hackers] [PATCH v2 02/14] Move layouts to single layout.h file & toggle layers via memcpy w/ XK_Cancel

2020-08-02 Thread Maarten van Gompel
From: Miles Alan --- layout.en.h => layout.sxmo.h | 57 +-- layout.symbols.h | 58 svkbd.c | 33 +++- 3 files changed, 87 insertions(+), 61 deletions(-) rename layout.en.h => la

[hackers] [PATCH v2 04/14] Fix SIGTERM handler - flip terminate flag in sigterm handler & cleanup properly

2020-08-02 Thread Maarten van Gompel
From: Miles Alan Modify run function to use select() with a timeout since X events will be blocked otherwise and terminate wouldn't apply for a while. --- svkbd.c | 47 --- 1 file changed, 32 insertions(+), 15 deletions(-) diff --git a/svkbd.c b/svkbd

Re: [hackers] [svkbd] Xft + Layers + Overlays + Mobile

2020-08-02 Thread Maarten van Gompel
g.mk. Right! Thanks! I wasn't sure how to get that right. In a moment I'll be sending a small patch to be applied on top of the 14 already submitted (and top of your Makefile patch). Regards, -- Maarten van Gompel proy...@anaproy.nl https://proycon.anaproy.nl htt

[hackers] [svkbd] Fixes for Xft + Layers + Overlays + Mobile

2020-08-02 Thread Maarten van Gompel
This patch should be applied on top of the series of 14 from before, and implements some proposed fixes for issues in the earlier series.

[hackers] [PATCH v2 1/2] Updated the man page

2020-08-02 Thread Maarten van Gompel
metry 3 .Sh AUTHORS .An Christoph Lohmann Aq Mt 2...@r-36.net -and .An Enno Boland Aq Mt got...@s01.de +.An Miles Alan Aq Mt m...@milesalan.com +.An Maarten van Gompel Aq Mt proy...@anaproy.nl -- 2.27.0

[hackers] [PATCH v2 2/2] cleaned up code style, fixed buffer overflow in layers configuration, added a printdbg function.

2020-08-02 Thread Maarten van Gompel
--- svkbd.c | 102 ++-- 1 file changed, 55 insertions(+), 47 deletions(-) diff --git a/svkbd.c b/svkbd.c index 1ff77f9..132a52d 100644 --- a/svkbd.c +++ b/svkbd.c @@ -57,6 +57,7 @@ typedef struct { } Buttonmod; /* function declarations */ +st

[hackers] [PATCH svkbd] Make install fix: install the actual compiled layout

2020-09-16 Thread Maarten van Gompel
--- Makefile | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index a9ac4d8..885ade9 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ .POSIX: NAME = svkbd -VERSION = 0.2 +VERSION = 0.2.1 include config.mk @@ -50,11 +50,8 @@ dist: install:

[hackers] [PATCH 1/2] fixed russian keyboard layout in mobile-intl, Р key was missing, moved З to an overlay on е because of lack of space

2020-12-11 Thread Maarten van Gompel
The cyrillic layout was missing a letter, as spotted and reported by tech_exorcist on the IRC channel. (I hope this patch comes through and applies fine, it has some utf-8 in the subject/commit message) --- README.md| 2 +- layout.mobile-intl.h | 9 +++-- 2 files changed, 4 inse

[hackers] [PATCH svkbd 2/2] fixed a bug that reset the layer to layer one after hiding the overlay

2020-12-11 Thread Maarten van Gompel
--- svkbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svkbd.c b/svkbd.c index d49bcd8..9b1282a 100644 --- a/svkbd.c +++ b/svkbd.c @@ -835,7 +835,7 @@ hideoverlay(void) if (debug) printdbg("Hiding overlay, overlay was #%d\n", currentoverlay); currentoverla

[hackers] Re: [PATCH 1/2] fixed russian keyboard layout in mobile-intl, Р key was missing, moved З to an overlay on е because of lack of space

2020-12-11 Thread Maarten van Gompel
On 20-12-11 05:56, Maarten van Gompel wrote: > The cyrillic layout was missing a letter, as spotted and reported by > tech_exorcist on > the IRC channel. This is a patch for svkbd, sorry for not putting it in the subject. Also, after these patches are merged, I would appreciate if a gi

[hackers] [svkbd] [merge request] various patches for svkbd

2021-03-15 Thread Maarten van Gompel
mit the patch series here or do you prefer to grab them? Kind Regards, -- Maarten van Gompel proy...@anaproy.nl https://proycon.anaproy.nl https://github.com/proycon GnuPG key: 0x39FE11201A31555C XMPP: proy...@anaproy.nl Matrix: @proycon:matrix.anaproy.nl Telegram: proycon

[hackers] [PATCH 02/24] Removed grid drwawing and set different slightly theme for abc keys

2021-03-19 Thread Maarten van Gompel
--- config.def.h | 3 ++- svkbd.c | 7 +-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config.def.h b/config.def.h index b996cc0..da865c8 100644 --- a/config.def.h +++ b/config.def.h @@ -7,7 +7,8 @@ static const char *fonts[] = { }; static const char *colors[SchemeLas

[hackers] [PATCH 03/24] Implemented press-on-release and repetition after delay (the latter only for keys without overlay)

2021-03-19 Thread Maarten van Gompel
--- config.def.h | 4 +++- svkbd.c | 48 +++- 2 files changed, 34 insertions(+), 18 deletions(-) diff --git a/config.def.h b/config.def.h index da865c8..2eb5f5e 100644 --- a/config.def.h +++ b/config.def.h @@ -1,6 +1,8 @@ static const Bool wmbord

[hackers] [PATCH 09/24] Added a second key label for the shift-activated symbols

2021-03-19 Thread Maarten van Gompel
--- config.def.h | 8 +- layout.mobile-intl.h | 843 +-- svkbd.c | 37 +- 3 files changed, 459 insertions(+), 429 deletions(-) diff --git a/config.def.h b/config.def.h index 44fcd5c..91e51dd 100644 --- a/config.def.h +++ b/config.def

[hackers] [PATCH 07/24] Extended key definition to allow setting explicit symbol for shift modifier.

2021-03-19 Thread Maarten van Gompel
From: Reed Wade This allow key definitions as : { "?", XK_slash, 1, XK_Shift_L }, Which will press wich output `?` Signed-off-by: Reed Wade Signed-off-by: Maarten van Gompel --- svkbd.c | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) di

[hackers] [PATCH 04/24] bump version to 0.3.0

2021-03-19 Thread Maarten van Gompel
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e82704e..15c617c 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ .POSIX: NAME = svkbd -VERSION = 0.2.2 +VERSION = 0.3.0 include config.mk -- 2.30.2

Re: [hackers] [svkbd] [merge request] various patches for svkbd

2021-03-19 Thread Maarten van Gompel
anks! Sure, no problem. I'll send them all to the mailing list. Looking forward to your feedback. -- Maarten van Gompel proy...@anaproy.nl https://proycon.anaproy.nl https://github.com/proycon GnuPG key: 0x39FE11201A31555C XMPP: proy...@anaproy.nl Matrix: @proycon:matr

[hackers] [PATCH 10/24] Implemented key output option to stdout

2021-03-19 Thread Maarten van Gompel
--- svkbd.c | 62 ++--- 1 file changed, 42 insertions(+), 20 deletions(-) diff --git a/svkbd.c b/svkbd.c index ca64035..6414675 100644 --- a/svkbd.c +++ b/svkbd.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #inclu

[hackers] [PATCH 15/24] fixed print output mode

2021-03-19 Thread Maarten van Gompel
--- svkbd.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/svkbd.c b/svkbd.c index c11e9a4..9f948c0 100644 --- a/svkbd.c +++ b/svkbd.c @@ -501,11 +501,13 @@ printkey(Key *k, KeySym mod) { char buffer[32]; KeySym ignore; Status return_status; -

[hackers] [PATCH 17/24] Added mobile-simple layout

2021-03-19 Thread Maarten van Gompel
From: Reed Wade Signed-off-by: Reed Wade Signed-off-by: Maarten van Gompel --- layout.mobile-simple.h | 489 + 1 file changed, 489 insertions(+) create mode 100644 layout.mobile-simple.h diff --git a/layout.mobile-simple.h b/layout.mobile-simple.h new

[hackers] [PATCH 16/24] Add Xresources support.

2021-03-19 Thread Maarten van Gompel
From: tetrakist Signed-off-by: Maarten van Gompel --- config.def.h | 4 +-- svkbd.c | 95 +++- 2 files changed, 96 insertions(+), 3 deletions(-) diff --git a/config.def.h b/config.def.h index 91e51dd..7b0025d 100644 --- a/config.def.h

[hackers] [PATCH 24/24] Add missing keys on lazy layers

2021-03-19 Thread Maarten van Gompel
From: Stacy Harper 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 Signed-off-by: Maarten van

[hackers] [PATCH 06/24] Implementing a print output mode and ability to not simulate keypresses for X

2021-03-19 Thread Maarten van Gompel
--- svkbd.c | 38 +- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/svkbd.c b/svkbd.c index 2333cf0..6829ec7 100644 --- a/svkbd.c +++ b/svkbd.c @@ -78,6 +78,7 @@ static void setlayer(); static void togglelayer(); static void unpress(Key *k, KeyS

[hackers] [PATCH 05/24] Applied different styling to overlays

2021-03-19 Thread Maarten van Gompel
--- config.def.h | 1 + svkbd.c | 30 ++ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/config.def.h b/config.def.h index 2eb5f5e..44fcd5c 100644 --- a/config.def.h +++ b/config.def.h @@ -13,4 +13,5 @@ static const char *colors[SchemeLast][2] = {

[hackers] [svkbd] [patch] Various patches for svkbd

2021-03-19 Thread Maarten van Gompel
This is the patch series for svkbd that I announced earlier. As requested I'm mailing all to the mailing list. Please judge them in context of the whole series. This 0.3.0 release implements various user interface and usability improvements: * Press-on-release functionality has been implemented

[hackers] [PATCH 14/24] adapted plain layout and legacy layouts to new structure

2021-03-19 Thread Maarten van Gompel
--- layout.de.h | 124 layout.en.h | 112 ++--- layout.mobile-plain.h | 159 +- layout.ru.h | 118 +++ layout.sh.h | 124

[hackers] [PATCH 13/24] Allow toggling modifier keys even when an overlay is displayed

2021-03-19 Thread Maarten van Gompel
--- svkbd.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/svkbd.c b/svkbd.c index 0a56914..c11e9a4 100644 --- a/svkbd.c +++ b/svkbd.c @@ -572,8 +572,7 @@ unpress(Key *k, KeySym mod) simulate_keypress(keys[i].keysym);

[hackers] [PATCH 01/24] 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-19 Thread Maarten van Gompel
--- config.def.h | 6 +-- layout.mobile-intl.h | 111 --- svkbd.c | 8 +++- 3 files changed, 93 insertions(+), 32 deletions(-) diff --git a/config.def.h b/config.def.h index df37ff9..b996cc0 100644 --- a/config.def.h +++ b/config.de

[hackers] [PATCH 19/24] Rebuild on layout update

2021-03-19 Thread Maarten van Gompel
From: Reed Wade Signed-off-by: Reed Wade Signed-off-by: Maarten van Gompel --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 15c617c..82057d3 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,8 @@ options: config.h: cp config.def.h

[hackers] [PATCH 12/24] fix for earlier overlay width patch (there was a conflict with multirow overlays)

2021-03-19 Thread Maarten van Gompel
--- svkbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svkbd.c b/svkbd.c index 9fca843..0a56914 100644 --- a/svkbd.c +++ b/svkbd.c @@ -924,8 +924,8 @@ showoverlay(int idx) } while (keys[j].keysym == 0) j++; -

[hackers] [PATCH 08/24] Usefull if you want to skip somekeys that you want still displayed under the overlay.

2021-03-19 Thread Maarten van Gompel
From: Reed Wade Signed-off-by: Reed Wade Signed-off-by: Maarten van Gompel --- svkbd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/svkbd.c b/svkbd.c index 3102a1e..f66c4e6 100644 --- a/svkbd.c +++ b/svkbd.c @@ -879,6 +879,8 @@ showoverlay(int idx

[hackers] [PATCH 23/24] fixed double free error

2021-03-19 Thread Maarten van Gompel
--- Makefile | 4 ++-- svkbd.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 82057d3..7890619 100644 --- a/Makefile +++ b/Makefile @@ -27,12 +27,12 @@ config.h: svkbd.o: config.h layout.${LAYOUT}.h .c.o: - ${CC} ${SVKBD_CFLAGS} ${SVKBD_C

[hackers] [PATCH 11/24] Simpler implementation for keeping track overlay keys (solution by stacy)

2021-03-19 Thread Maarten van Gompel
--- svkbd.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/svkbd.c b/svkbd.c index 6414675..9fca843 100644 --- a/svkbd.c +++ b/svkbd.c @@ -47,6 +47,7 @@ typedef struct { int x, y, w, h; Bool pressed; Bool highlighted; +

[hackers] [PATCH 22/24] Updated the documentation to describe the new functionality

2021-03-19 Thread Maarten van Gompel
HORS @@ -70,3 +112,5 @@ One row of keys takes up 1/heighfactor of the screen's total height. .An Enno Boland Aq Mt got...@s01.de .An Miles Alan Aq Mt m...@milesalan.com .An Maarten van Gompel Aq Mt proy...@anaproy.nl +.An Tetrakist Aq Mt tetrak...@mutandum.com +.An Stacy Aq Mt st...@stacyharper.net -- 2.30.2

[hackers] [PATCH 18/24] fix the highlighted key on dragged touch

2021-03-19 Thread Maarten van Gompel
From: Reed Wade Signed-off-by: Reed Wade Signed-off-by: Maarten van Gompel --- svkbd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/svkbd.c b/svkbd.c index 2ea4141..7f1cedf 100644 --- a/svkbd.c +++ b/svkbd.c @@ -177,6 +177,8 @@ motionnotify(XEvent *e) if ((lostfocus != -1

[hackers] [PATCH 21/24] cleanup and reworking some of the logic

2021-03-19 Thread Maarten van Gompel
--- svkbd.c | 216 1 file changed, 107 insertions(+), 109 deletions(-) diff --git a/svkbd.c b/svkbd.c index 1b1e82c..35cbc61 100644 --- a/svkbd.c +++ b/svkbd.c @@ -101,7 +101,6 @@ static Drw *drw; static Window root, win; static Clr* sche

[hackers] [PATCH 20/24] fix for output key on release

2021-03-19 Thread Maarten van Gompel
--- svkbd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/svkbd.c b/svkbd.c index 7f1cedf..1b1e82c 100644 --- a/svkbd.c +++ b/svkbd.c @@ -584,7 +584,6 @@ unpress(Key *k, KeySym mod) simulate_keypress(mod);

[hackers] [PATCH sxmo-dwm] close window on long voldown press, kill window on triple press

2021-03-21 Thread Maarten van Gompel
This implements what was suggested in the 'Close windows in a more "graceful" way' thread. --- config.def.h | 1 + 1 file changed, 1 insertion(+) diff --git a/config.def.h b/config.def.h index 7d57c7d..bdc6559 100644 --- a/config.def.h +++ b/config.def.h @@ -93,6 +93,7 @@ static Key keys[] = {

[hackers] [PATCH sxmo-utils] use 2-finger swipe down to close window, 3 to kill window

2021-03-21 Thread Maarten van Gompel
--- scripts/core/sxmo_gesturehandler.sh | 3 +++ scripts/core/sxmo_killwindow.sh | 6 +- scripts/core/sxmo_lisgdstart.sh | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/core/sxmo_gesturehandler.sh b/scripts/core/sxmo_gesturehandler.sh index 19784ab..

Re: [hackers] [PATCH sxmo-dwm] close window on long voldown press, kill window on triple press

2021-03-21 Thread Maarten van Gompel
Sorry, this patch (and the other I just sent) were not meant for the suckless mailing list but for another! I got the recipients messed up! -- Maarten van Gompel (proycon) https://proycon.anaproy.nl

Re: [hackers] [svkbd] [merge request] various patches for svkbd

2021-03-27 Thread Maarten van Gompel
On 21-03-19 09:23, Maarten van Gompel wrote: > > Thanks for the work. > > > > I've reviewed the patches. In general it looks good, but I've found a few > > issues. Can you resend them to the mailinglist, then me (and possibly others > > too of course) can re

Re: [hackers] [svkbd] [merge request] various patches for svkbd

2021-03-27 Thread Maarten van Gompel
Makefile (added -g). Oops, that was indeed not the intention. Thanks for the feedback! -- Maarten van Gompel proy...@anaproy.nl https://proycon.anaproy.nl https://github.com/proycon GnuPG key: 0x39FE11201A31555C XMPP: proy...@anaproy.nl Matrix: @proycon:matrix.anaproy.nl Telegram

[hackers] [PATCH svkbd 1/4] removed debugging flag

2021-03-27 Thread Maarten van Gompel
This patch series is to be applied on top of the 24 I already sent and addressed the feedback received thus-far. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7890619..82057d3 100644 --- a/Makefile +++ b/Makefile @@ -27,12 +27,12 @@

[hackers] [PATCH svkbd 3/4] ternary operator was used in the wrong order

2021-03-27 Thread Maarten van Gompel
--- svkbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svkbd.c b/svkbd.c index 0390e13..16072f3 100644 --- a/svkbd.c +++ b/svkbd.c @@ -504,7 +504,7 @@ printkey(Key *k, KeySym mod) { XKeyPressedEvent event; event.type = KeyPress; event.display = dpy;

[hackers] [PATCH svkbd 4/4] Various indentation fixes for a more consistent style

2021-03-27 Thread Maarten van Gompel
--- layout.en.h |7 +- layout.mobile-intl.h | 1047 - layout.mobile-plain.h | 142 +++--- svkbd.c | 45 +- 4 files changed, 619 insertions(+), 622 deletions(-) diff --git a/layout.en.h b/layout.en.h index c39698c..957a251 100

[hackers] [PATCH svkbd 2/4] Added a util function estrdup() to check all memory allocations

2021-03-27 Thread Maarten van Gompel
--- svkbd.c | 61 + 1 file changed, 35 insertions(+), 26 deletions(-) diff --git a/svkbd.c b/svkbd.c index 2bc6d17..0390e13 100644 --- a/svkbd.c +++ b/svkbd.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #includ

[hackers] [PATCH svkbd] Add missing keys on lazy layers

2021-03-28 Thread Maarten van Gompel
From: Stacy Harper 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 Signed-off-by: Maarten van

Re: [hackers] [svkbd] [merge request] various patches for svkbd

2021-03-28 Thread Maarten van Gompel
l/@proycon (@proy...@social.anaproy.nl) Twitter:https://twitter.com/proycon On 21-03-27 02:37, Hiltjo Posthuma wrote: > On Sat, Mar 27, 2021 at 02:03:05PM +0100, Maarten van Gompel wrote: > > On 21-03-19 09:23, Maarten van Gompel wrote: > > > > Thanks for the work. &g

Re: [hackers] [svkbd] [merge request] various patches for svkbd

2021-03-28 Thread Maarten van Gompel
haps someone still wants wants to use it. > Should I tag the release as 0.3 and generate the tarball? Yes please, thanks! -- Maarten van Gompel proy...@anaproy.nl https://proycon.anaproy.nl https://github.com/proycon GnuPG key: 0x39FE11201A31555C XMPP: proy...@anaproy.nl Matrix:

Re: [hackers] [svkbd][PATCH] allow neutralizing a key modifier by applying the same modifier again

2021-04-23 Thread Maarten van Gompel
gt; > From the description it sounds useful to me. > > Any users of svkbd have opinions or objections about this patch? I don't use > svkbd at the moment. Thanks for the patch, I'll give it a try first in our sxmo context and will get back to you! -- Maarten van Gompel (proycon) https://proycon.anaproy.nl

[hackers] [PATCH 1/5] allow neutralizing a key modifier by applying the same modifier again

2021-06-13 Thread Maarten van Gompel
}, This patch works equally for AltGr symbols in a `de`-based layout. For example: { "~", "+", XK_plus, 1, XK_ISO_Level3_Shift }, (In the German QWERTZ layout, you enter "~" with AltGr-"+".) Best regards, Max Signed-off-by: Maarten van Gompel --- sv

[hackers] [PATCH 2/5] Fix error in >1 wide key width calc, also 2021

2021-06-13 Thread Maarten van Gompel
From: silver Signed-off-by: Maarten van Gompel --- svkbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svkbd.c b/svkbd.c index 61778c6..0ad1836 100644 --- a/svkbd.c +++ b/svkbd.c @@ -955,7 +955,7 @@ updatekeys(void) for (x = 0; i < numkeys &&

[hackers] [PATCH svkbd] spacing between keys, less rigid layout + additional simple layer

2021-06-13 Thread Maarten van Gompel
This patches series introduces the ability to have some dead space between keys. It also implements a less rigid grid-layout. Both of this helps greatly with typing accuracy, especially on smaller touch devices. A screenshot of how it looks on sxmo on the pinephone: https://download.anaproy.nl/svkb

[hackers] [PATCH 3/5] adding dead spacing between keys to prevent misclicks and adapting keyboard layout to a less rigid grid (all aimed to reduce typos)

2021-06-13 Thread Maarten van Gompel
--- config.def.h | 2 ++ layout.mobile-intl.h | 18 ++ svkbd.c | 16 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/config.def.h b/config.def.h index 7b0025d..21e9f49 100644 --- a/config.def.h +++ b/config.def.h @@ -4,6 +4,8

[hackers] [PATCH 5/5] added an additional minimal mobile layer

2021-06-13 Thread Maarten van Gompel
--- layout.mobile-intl.h | 54 +--- 1 file changed, 51 insertions(+), 3 deletions(-) diff --git a/layout.mobile-intl.h b/layout.mobile-intl.h index b454abb..b581592 100644 --- a/layout.mobile-intl.h +++ b/layout.mobile-intl.h @@ -16,7 +16,7 @@ static Key ke

[hackers] [PATCH 4/5] increase spacing, set scheme for window, make window render faster by removing unnecessary map requests to X

2021-06-13 Thread Maarten van Gompel
--- config.def.h | 5 +++-- svkbd.c | 35 --- 2 files changed, 23 insertions(+), 17 deletions(-) diff --git a/config.def.h b/config.def.h index 21e9f49..cb9d134 100644 --- a/config.def.h +++ b/config.def.h @@ -4,8 +4,8 @@ static double overlay_delay = 1.0; //

[hackers] [PATCH svkbd 2/7] exclude certain modifier keys and basic keys from being overlayed

2021-07-11 Thread Maarten van Gompel
This ensures that modifiers like shift/ctrl can be correctly used with the overlay. --- svkbd.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/svkbd.c b/svkbd.c index 875a0b5..be688b5 100644 --- a/svkbd.c +++ b/svkbd.c @@ -1052,7 +1052,13 @@ showoverlay(int idx)

[hackers] [PATCH svkbd 3/7] protection against segfault if overlay has more keys than the keyboard itself

2021-07-11 Thread Maarten van Gompel
--- svkbd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/svkbd.c b/svkbd.c index be688b5..38a549a 100644 --- a/svkbd.c +++ b/svkbd.c @@ -1062,6 +1062,8 @@ showoverlay(int idx) j++; if (overlay[i].width > 1) j += overlay[i].wi

[hackers] [PATCH svkbd 6/7] code cleanup in overlay definitions (removed empty lines comments)

2021-07-11 Thread Maarten van Gompel
--- layout.mobile-intl.h | 61 +++--- layout.mobile-simple.h | 32 +- 2 files changed, 4 insertions(+), 89 deletions(-) diff --git a/layout.mobile-intl.h b/layout.mobile-intl.h index 8962e7e..97b914e 100644 --- a/layout.mobile-intl.h +++ b

[hackers] [PATCH svkbd 1/7] added missing e caron to overlay in international and simple layouts (e.g. for czech)

2021-07-11 Thread Maarten van Gompel
--- layout.mobile-intl.h | 1 + layout.mobile-simple.h | 1 + 2 files changed, 2 insertions(+) diff --git a/layout.mobile-intl.h b/layout.mobile-intl.h index 5d3e755..aae7410 100644 --- a/layout.mobile-intl.h +++ b/layout.mobile-intl.h @@ -138,6 +138,7 @@ static Key overlay[OVERLAYS] = {

[hackers] [PATCH svkbd 7/7] made the Q key double as a trigger for the emoji overlay in the default mobile-intl layout

2021-07-11 Thread Maarten van Gompel
This makes the emoji overlay accessible without sacrificing an extra key. There are (afaik) no languages with diacritics on the Q anyway and it's the first letter key. A small emoji will show as 2nd label on the keycap as a hint, the caveat being that the hint applies to a long press rather than a

[hackers] [PATCH svkbd 4/7] minor documentation update

2021-07-11 Thread Maarten van Gompel
--- README.md | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2eb589c..9d18797 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ The following layouts are available: * a cyrillic layer (ЙЦУКЕН based); the э key is moved to

[hackers] [PATCH svkbd 5/7] moved backspace key down in dialer layer (mobile-intl and simple layout), for more consistency with other layers

2021-07-11 Thread Maarten van Gompel
--- layout.mobile-intl.h | 12 ++-- layout.mobile-simple.h | 12 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/layout.mobile-intl.h b/layout.mobile-intl.h index aae7410..8962e7e 100644 --- a/layout.mobile-intl.h +++ b/layout.mobile-intl.h @@ -113,7 +113,7

[hackers] [PATCH svkbd] minor update for emoji overlay on Q: simpler glyph

2021-07-19 Thread Maarten van Gompel
I picked a simpler glyph because the other might be more likely to not be present in a font. --- layout.mobile-intl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout.mobile-intl.h b/layout.mobile-intl.h index dcc7c6d..6b877ed 100644 --- a/layout.mobile-intl.h +++ b/

[hackers] [PATCH svkbd] Version bump prior to release

2021-07-30 Thread Maarten van Gompel
This is also a release request, could you tag and release svkbd 0.4? We're planning packaging and a release of Sxmo 1.5.0 this weekend that includes it. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 44aa833..3478218 100644 --- a/Makefil

Re: [hackers] [PATCH svkbd] Version bump prior to release

2021-07-30 Thread Maarten van Gompel
Hi Hiltjo, > I made a new 0.4 release and some small fix for printing the version I > noticed. > > Thank you and the other people of sxmo for improving it. Thanks for the quick release! -- Maarten van Gompel proy...@anaproy.nl https://proycon.anaproy.nl https://github.com/proyco

[hackers] [PATCH svkbd] Fix color scheme editing on smiley with Xresources

2021-10-08 Thread Maarten van Gompel
From: Justin Torres Fixes a small oversight that was preventing the colors of the smiley on q from changing with Xresources. Signed-off-by: Maarten van Gompel --- svkbd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/svkbd.c b/svkbd.c index c762551..3ed9e6d

[hackers] [PATCH sxmo-utils 1/2] added tinydm-set-session to doas conf so sxmo_wmtoggle.sh works again

2021-10-22 Thread Maarten van Gompel
(already applied) --- configs/doas/sxmo.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/doas/sxmo.conf b/configs/doas/sxmo.conf index 1186439..8a07a91 100644 --- a/configs/doas/sxmo.conf +++ b/configs/doas/sxmo.conf @@ -3,6 +3,7 @@ permit nopass :wheel as root cmd "/bin/busybox r

[hackers] [PATCH sxmo-utils 2/2] added some systemctl commands to doas.conf for compatibility with systemd distros like Arch

2021-10-22 Thread Maarten van Gompel
(already applied) --- configs/doas/sxmo.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/doas/sxmo.conf b/configs/doas/sxmo.conf index 8a07a91..5392bda 100644 --- a/configs/doas/sxmo.conf +++ b/configs/doas/sxmo.conf @@ -10,3 +10,5 @@ permit nopass :wheel as root cmd "/sbin/rc-s

[hackers] Re: [PATCH sxmo-utils 2/2] added some systemctl commands to doas.conf for compatibility with systemd distros like Arch

2021-10-22 Thread Maarten van Gompel
Oops, apologies.. I sent my patches to the wrong list :) This is not related to suckless but is for sxmo. Please ignore... -- Maarten van Gompel (proycon) https://proycon.anaproy.nl

[hackers] [PATCH svkbd] bump version to 0.4.1

2022-01-06 Thread Maarten van Gompel
May I request a 0.4.1 release? (git tag + tarball) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f9e7a38..5940999 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ .POSIX: NAME = svkbd -VERSION = 0.4 +VERSION = 0.4.1 include con

Re: [hackers] [svkbd][PATCH] Reducing xspacing and yspacing to 1 so touchscreen users have less mistyping.

2024-10-27 Thread Maarten van Gompel
gaps are better, then that's fine. It's been a while since I typed on svkbd myself. -- Maarten van Gompel (proycon) web: https://proycon.anaproy.nl gpg: 0x39FE11201A31555C signature.asc Description: PGP signature

Re: [hackers] release/tag request: svkbd

2024-11-26 Thread Maarten van Gompel
Hi Hiltjo, On Tue Nov 26, 2024 at 6:38 PM CET, Hiltjo Posthuma wrote: > svkbd 0.4.2 is now released and the tarball generated. > There are not many changes. > > Thanks to the svkbd contributors and for working on sxmo, Thanks for the quick release! -- Maarten van Gompel (proycon)

[hackers] release/tag request: svkbd

2024-11-26 Thread Maarten van Gompel
Kind Regards, -- Maarten van Gompel (proycon) web: https://proycon.anaproy.nl gpg: 0x39FE11201A31555C signature.asc Description: PGP signature