Fix color scheme editing on smiley with Xresources
Fixes a small oversight that was preventing the colors of the smiley on q from changing with Xresources.
Signed-off-by: Maarten van Gompel <email@example.com>
create layout-dependent object files
When you build svkbd with different layouts, you get one binary per
layout but all binaries are identical:
$ make LAYOUT=mobile-plain
$ make LAYOUT=mobile-simple
$ diff -s svkbd-mobile-plain svkbd-mobile-simple
Files svkbd-mobile-plain and svkbd-mobile-simple are identical
The problem is that svkbd.o from the first build is being reused in the
This commit changes the Makefile to create layout-dependent object files
like svkbd-mobile-plain.o and svkbd-mobile-simple.o (instead of a shared
Add a Serbian layout: layout.sr.h
config.mk: fix version printing for -v
minor update for emoji overlay on Q: simpler glyph
I picked a simpler glyph because the other might be more likely to not be
present in a font.
change comment-style in .c file
made the Q key double as a trigger for the emoji overlay in the default mobile-intl layout
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 shift-press as
with most 2nd labels, but better than no hint at all.
code cleanup in overlay definitions (removed empty lines comments)
moved backspace key down in dialer layer (mobile-intl and simple layout), for more consistency with other layers
minor documentation update
protection against segfault if overlay has more keys than the keyboard itself
exclude certain modifier keys and basic keys from being overlayed
This ensures that modifiers like shift/ctrl can be correctly used with the overlay.
added missing e caron to overlay in international and simple layouts (e.g. for czech)
no need to initialize these variables here
check key for NULL dereference, just in case
This matches the check pattern in other parts of the code.
Fix broken key definitions in layout.en.h
There were two problems with this file.
First, there were commas missing from the definitions for XK_7, XK_0,
XK_minus, and XK_plus. This prevented svkbd from even compiling.
Secondly, XK_Return was misdefined. This resulted in an immediate
segmentation fault upon loading the program.