a toy project that shows an indicator when caps lock
is on
- it just works
- the use of ffi may crash nvim
- it uses a timer to poll the state of capslock in every 500ms, so it wont cause too much overhead
- linux
- libx11 1.8.9
- zig 0.12
- nvim 0.10.*
- haolian9/infra.nvim
zig build -Doptimize=ReleaseSafe
:lua require'capsbulb'.toggle_warn()