0c5fc7b1f8
correctly declare log functions and fix potential formatstring injection
2024-01-06 09:49:35 +01:00
Leon Henrik Plickat
ac3412155c
allocate correct capacity in hotspot list
2024-01-06 04:28:19 +01:00
Leon Henrik Plickat
f7ed58c73a
move circle mask to dedicated struct
2024-01-06 02:54:30 +01:00
Leon Henrik Plickat
f215e3514f
update README
2024-01-06 02:13:05 +01:00
5e92517b6a
fix: correctly handle closed stdin and multiple commands in one read()
2024-01-06 00:09:27 +01:00
Leon Henrik Plickat
d93e127db4
support cursor-shape-v1
2024-01-05 03:34:38 +01:00
Leon Henrik Plickat
49125b9c01
separate colour configuration for all button borders and texts
2024-01-05 02:41:28 +01:00
Leon Henrik Plickat
c27253841e
make default colour definitions a bit cleaner
2024-01-05 02:31:08 +01:00
Leon Henrik Plickat
be86f85ae3
support transparent colours
2024-01-05 01:39:55 +01:00
Leon Henrik Plickat
d5aadba9f7
fix endless loop on exit
...
Sometimes gpg-agent seems very eager to close the pipe. This trips poll,
but because wayprompt did not check POLLHUP, this would enter an endless
busy loop.
2024-01-05 00:29:12 +01:00
Leon Henrik Plickat
89f8ede133
c i r c l e
2024-01-04 10:11:26 +01:00
Leon Henrik Plickat
622caf6f4e
port to zig 0.11.0
2024-01-04 06:57:30 +01:00
Leon Henrik Plickat
a36891ed77
make fonts configurable
2023-10-10 11:59:14 +02:00
Leon Henrik Plickat
aa4ac35266
Add test target to build.zig
2023-07-10 23:34:29 +02:00
Leon Henrik Plickat
41f4e66464
add tests
2023-06-11 16:18:29 +02:00
Leon Henrik Plickat
1f9d4b5cfb
doc: typo
2023-06-04 19:18:54 +02:00
Leon Henrik Plickat
316f3f99f9
fix config file parsing
2023-06-04 19:15:21 +02:00
Leon Henrik Plickat
b8b2d40ac1
improve config file parsing
2023-06-04 19:00:12 +02:00
Leon Henrik Plickat
e1e1ad9a5b
clear secret buffer on C-w and C-backspace
2023-06-03 18:05:35 +02:00
Leon Henrik Plickat
6ac0e80098
fix crash when pressing backspace while not prompting for secret
2023-06-03 17:55:37 +02:00
Leon Henrik Plickat
3f7dd290a9
backends: use globals
2023-06-03 17:52:42 +02:00
Hugo Machet
0b18ef2774
doc: Fix typos
2023-06-03 17:06:36 +02:00
Leon Henrik Plickat
f4e18f0e14
add documentation
2023-06-03 06:31:47 +02:00
Leon Henrik Plickat
56021ed215
use dynamic buffer pool
2023-06-03 04:53:40 +02:00
Leon Henrik Plickat
f79b8483a0
refactor basically everything
2023-06-03 04:31:57 +02:00
Leon Henrik Plickat
3d737328fe
fix crash on bad config section
2023-01-13 10:24:45 +01:00
Leon Henrik Plickat
50f91cf867
Set correct syslog priority
2023-01-13 10:24:16 +01:00
Leon Henrik Plickat
45b97245ba
Revert "potentially fix font-spacing"
...
This reverts commit c50e32ef38
.
2023-01-11 00:14:11 +01:00
Leon Henrik Plickat
ae6d7ee941
allow JSON output for cli mode
2023-01-10 11:03:56 +01:00
Leon Henrik Plickat
bc66248bc7
fix --help text
2023-01-10 10:40:54 +01:00
Leon Henrik Plickat
c50e32ef38
potentially fix font-spacing
2023-01-10 10:37:24 +01:00
Leon Henrik Plickat
6852eb0a65
Merge branch 'zig0.10.0'
2023-01-07 21:14:52 +01:00
Leon Henrik Plickat
056e71c185
update to zig0.10.0
2023-01-07 21:14:31 +01:00
Leon Henrik Plickat
ac0430dc79
Default to CLI interface
2023-01-07 14:32:34 +01:00
Leon Henrik Plickat
1b60c61d39
bind version 3 of layer shell
...
right now we do not use anything the later versions add
2023-01-06 19:54:21 +01:00
Leon Henrik Plickat
ad00d4500e
pinentry: fix error.BrokenPipe on exit
2022-12-25 16:29:05 +01:00
Leon Henrik Plickat
b9766708e0
pinentry: log to syslog
...
this makes it a bit easier for users to find our error messages
2022-12-25 16:28:25 +01:00
Leon Henrik Plickat
1b3a381238
Improve security of pin storage
...
* Use a fixed size and single page for pin storage instead of allowing arbitrary
lengths and reallocs.
* Use mlock(3) to prevent the pin page to be swapped.
* On linux use madvise(2) to prevent the pin page to be included in coredumps.
* Minor API improvements
2022-12-12 13:39:26 +01:00
Leon Henrik Plickat
ff0004a7a2
add TTY fallback
2022-10-18 19:24:51 +02:00
Leon Henrik Plickat
58020dea3a
minor cleanup
2022-10-13 03:08:39 +02:00
Leon Henrik Plickat
c552006ae9
store pins as utf8 instead of codepoints
2022-10-13 02:00:18 +02:00
Leon Henrik Plickat
e5174567ea
use provided default button text
2022-10-11 23:15:49 +02:00
Leon Henrik Plickat
916a8df9ce
Fix bug causing false positive hotspot activations on button release
...
When a mouse button was pressed over a hotspot, but released over none, the
press_hotspot was not cleared. I now the cursor was dragged over the hotspot
later while pressed, withouth wayprompt receiving the press event (like when
the button is pressed outside our surface), and then released, it caused a
false positive activation of the hotspot action.
2022-10-06 17:48:31 +02:00
Leon Henrik Plickat
585e21a73d
Improve CLI interface to be actually useable in scripts and such
2022-10-06 12:05:22 +02:00
Leon Henrik Plickat
2581ec91a3
pointer handling
2022-10-05 16:15:02 +02:00
Leon Henrik Plickat
8a6fe7d1d3
store input as codepoints and support backspace
2022-09-27 12:50:13 +02:00
Leon Henrik Plickat
4e8b6b2d80
saner default colour for error messages
2022-09-24 00:03:27 +02:00
Leon Henrik Plickat
54924978c2
fix default border size
2022-09-23 23:58:33 +02:00
Leon Henrik Plickat
d14d34dd9f
Make basically all dimensions configurable
2022-09-23 23:57:48 +02:00
Leon Henrik Plickat
a9d35411b2
fix button positioning
2022-09-23 22:36:58 +02:00