Created attachment 235201 [details] port patch While I was playing with x11-wm/dwm and self-made status bar for it I could find a simple way to get current XKB keyboard layout. This program helped me.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=f28a6e5d6f8d602a69c263cd87ac79f72bca9c15 commit f28a6e5d6f8d602a69c263cd87ac79f72bca9c15 Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2023-12-08 07:05:56 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2023-12-08 07:05:56 +0000 x11/xkblayout-state: new port had been added (+) Small command-line program to get/set current XKB keyboard layout (thin wrapper around a slightly modified version of Jay Bromley's XKeyboard class). PR: 265161 Submitted by: Pavel Timofeev x11/Makefile | 1 + x11/xkblayout-state/Makefile (new) | 24 ++++++++++++++++++++++++ x11/xkblayout-state/distinfo (new) | 3 +++ x11/xkblayout-state/pkg-descr (new) | 5 +++++ 4 files changed, 33 insertions(+)
Committed with minor modifications, thank you.