Preserve inherited input keys and later keyboard changes

This commit is contained in:
David Heinemeier Hansson committed 2026-10-07 15:19:06 +02:00
1 parent cd0025b62f
commit 0f14a84934
4 files changed
+22 -4

No files matched your search

+3 -1
View File
@@ -31,7 +31,9 @@ end
function keyboard.installed()
local values = keyboard.vconsole()
if read_values("/etc/omarchy/input-method").XKB_LAYOUT == "kr" then
if read_values("/etc/omarchy/input-method").XKB_LAYOUT == "kr"
and (values.XKBLAYOUT or "us") == "us"
and (values.XKBVARIANT or "") == "" then
values.XKBLAYOUT, values.XKBVARIANT = "kr", ""
end
return values