feat: add keybind status bar widget

This widget will show the state of the leader key sequence being
processed.
This commit is contained in:
CJ van den Berg 2024-12-12 17:04:01 +01:00
parent a5849a7dab
commit 4e03fc99d4
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 45 additions and 1 deletions

View file

@ -17,6 +17,7 @@ const widgets = std.static_string_map.StaticStringMap(CreateFunction).initCompti
.{ "expander", @import("blank.zig").Create(.dynamic) },
.{ "spacer", @import("blank.zig").Create(.{ .static = 1 }) },
.{ "clock", @import("clock.zig").create },
.{ "keybind", @import("keybindstate.zig").create },
});
pub const CreateError = error{ OutOfMemory, Exit };
pub const CreateFunction = *const fn (allocator: std.mem.Allocator, parent: Plane, event_handler: ?EventHandler) CreateError!Widget;