ArenM
f540cf36fa
Use output dimensions to detect landscape mode
...
Most displays are in landscape mode by default, so checking to see if
it's rotated will produce the exact opposite of the expected results.
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2022-07-05 18:08:02 +02:00
Zach DeCook
22ff01fb8b
Keyboard: Avoid unnecessary resizes
...
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2022-06-25 15:19:33 +02:00
ArenM
7be30a6a56
Check for surface in display_handle_geometry
...
Fixes #23
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2022-06-14 00:10:31 +02:00
Brandon Doornbos
e6c7d0ff2a
main.c: add a real-time signal for toggling visibility of the keyboard
...
Previously it was only possible to either show or hide the keyboard.
When you want to control the keyboard with a single button in, i.e.
a window manager, this requires a separate script to keep track of
state. This solves this by only needing one signal to toggle.
Since there are only 2 USR signals, I had to use real-time signals,
which are in the [POSIX
standard](https://standards.ieee.org/standard/1003_1b-1993.html ) and
available in the [Linux kernel since
2.2](https://www.man7.org/linux/man-pages/man7/signal.7.html ).
2022-06-13 22:18:03 +02:00
Zach DeCook
c27f876634
main: prevent crash on sigpipe
...
This is commonly caused by a bad program in the output chain, e.g.
wvkbd -O | false
2022-06-13 21:56:49 +02:00
John Sullivan
849f4600e9
project: rerun clang-format
...
TODO make a commit or PR hook for this
2022-06-13 21:55:47 +02:00
Zach DeCook
905a0d100a
version: Output newline
2022-06-13 21:55:15 +02:00
Zach DeCook
2de12a90e4
output: add -O flag to output overlapped keys
...
the use-case for this is simple 'swipe'-typing:
another program can take the output, guess the word which is being typed, and type the rest of the word
2022-01-10 03:08:06 +00:00
Maarten van Gompel
7e4f6ac5d1
renamed freeze/unfreeze to more standard hide/show
2021-10-19 23:12:01 -07:00
Maarten van Gompel
0618da1d24
implemented a --hidden paramter to start hidden
2021-10-19 23:12:01 -07:00
Maarten van Gompel
bb1eff09be
applied clang-format (no functional changes), but exempted custom include order in keyboard.c and main.c
2021-10-19 23:12:01 -07:00
Stacy Harper
3a241c8d2c
Fix normal_height when using argument
...
This was overrided with rotation cause we dont save it
2021-10-19 23:12:01 -07:00
Stacy Harper
7a512fbca7
Add landscape height value
2021-10-19 23:12:01 -07:00
Stacy Harper
e100aafb05
Add landscape layers
2021-10-19 23:12:01 -07:00
Stacy Harper
450d43ff44
Handle hide and show signals
2021-10-19 23:12:01 -07:00
Stacy Harper
e73316bd7c
WIP refacto keyboard.c
2021-10-19 23:12:01 -07:00
Maarten van Gompel
ff92a92086
refactored keymap loading
2021-10-19 23:12:01 -07:00
Stacy Harper
b5ec768822
WIP: refactorise keyboard.c
2021-10-19 23:12:01 -07:00
Stacy Harper
915d01c562
Cleanup some code
2021-10-19 23:12:01 -07:00
Stacy Harper
c8a02479a9
Remove useless variable
2021-10-19 23:12:01 -07:00
Stacy Harper
b65ea995f1
Simplify ctx initializer
2021-10-19 23:12:01 -07:00
Maarten van Gompel
bdfdf559b4
added --fn parameter to set font at run time
2021-10-19 23:12:01 -07:00
Stacy Harper
fb82daea9c
Handle output scaling
2021-10-19 23:12:01 -07:00
Stacy Harper
c806023fd5
Drop wld and implement our own pangocairo renderer
2021-10-19 23:12:01 -07:00
Maarten van Gompel
8fdaaa2b6f
fixed layout switching
2021-10-19 23:12:01 -07:00
Maarten van Gompel
19213688d1
allow supplying layers through command line parameter or env var
2021-10-19 23:12:01 -07:00
Maarten van Gompel
2fd0cfc89c
implemented configurable layers
2021-10-19 23:12:01 -07:00
Maarten van Gompel
8a844c0857
made keymap dependent on layout, renamed default layout to 'mobintl' for 'mobile international'
2021-10-19 23:12:01 -07:00
Maarten van Gompel
07f153fe32
ran make format
2021-10-19 23:12:01 -07:00
Maarten van Gompel
878b16b997
cleanup indentation (tab)
2021-10-19 23:12:01 -07:00
Maarten van Gompel
447f655db3
fix memory leak
2021-10-19 23:12:01 -07:00
Maarten van Gompel
e3f414536e
cleanup
2021-10-19 23:12:01 -07:00
Maarten van Gompel
20b2dc61c3
implemented support for multiple keymaps
2021-10-19 23:12:01 -07:00
Maarten van Gompel
9e4cf69137
Added a compose button, copy type; added compose layouts and further layout updates
2021-10-19 23:12:01 -07:00
Stacy Harper
1fc0fbe5e6
Make the layout switchable
2021-10-19 23:12:01 -07:00
Maarten van Gompel
eab4da9765
Allow more flexible layouts rather than fixed grid and first layout overhaul
2021-10-19 23:12:01 -07:00
John Sullivan
590b75b23a
Init
2020-09-13 04:44:15 -07:00