Detecting the current keyboard layout in real time on BunsenLabs Linux, by talking to X11 directly from Python when setxkbmap wouldn't cooperate.