Incorrect kb_variant exposed through IPC #12113
Unanswered
ARKye03
asked this question in
Bugs - IPC / Plugins
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hyprland event
activelayoutis returning incorrect values?Related config:
This should add two kb_layouts to cycle through.
I switch layouts using:
$
hyprctl switchxkblayout at-translated-set-2-keyboard nextI use this "script", a migration of the bash one in the wiki, to check values directly from the IPC:
def handle [line: string] { if ($line | str starts-with "activelayout>>") { let parts = ($line | str replace "activelayout>>" "" | split row ",") let keyboard = ($parts | get 0) let layout = ($parts | get 1) print $"Keyboard: ($keyboard), Layout: ($layout)" } } socat -U - $"UNIX-CONNECT:($env.XDG_RUNTIME_DIR)/hypr/($env.HYPRLAND_INSTANCE_SIGNATURE)/.socket2.sock" | lines | each { |line| handle $line }This is what they return when I switch between layouts (I formatted the result with the script to make it prettier):
The first one is
us, and the second one isus-intl. The difference is thatus-intlhas one less paren at the end, just that, and it doesn't give information that it is the international variant.My use case is that I visualise them using a Gtk app, which shouldn't be relevant here; in that scenario, the result is the same.
$ hyprctl systeminfo:
Beta Was this translation helpful? Give feedback.
All reactions