Implement river-xkb-config-v1
This commit adds support for the river-xkb-config-v1 protocol. There's a new keyboard_layout block in config that can take options from xkeyboard-config(7).
This commit is contained in:
parent
799963ae42
commit
a1bd356943
12 changed files with 714 additions and 6 deletions
|
|
@ -282,7 +282,7 @@ fn draw(bar: *Bar) !void {
|
|||
}
|
||||
}.f;
|
||||
|
||||
// Measure center first — needed to constrain left and right widths
|
||||
// Measure center first; needed to constrain left and right widths
|
||||
const center_codepoints = componentSlice(options.center, clock_codepoints, title_codepoints, wm_info_codepoints);
|
||||
const center_width = try bar.textWidth(center_codepoints);
|
||||
var center_x: i32 = @divFloor(buffer.width - center_width, 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue