Give the Lao keyboard choice a Lao desktop layout
The row used la-latin1, kbd's Latin American Spanish keymap, so Lao installs typed Spanish. There is no Lao console keymap; like Korean, the console stays US and the desktop gets la, which Omarchy keeps behind US as a non-Latin layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4eda649324
commit
87c4e2c8b1
8 files changed
+19
-10
No files matched your search
@@ -36,12 +36,17 @@ function keyboard.vconsole()
|
||||
return read_values("/etc/vconsole.conf")
|
||||
end
|
||||
|
||||
-- Choices whose console keymap is plain US but whose desktop layout is not:
|
||||
-- Korean keeps US letters, and Lao is non-Latin, so US still leads.
|
||||
local desktop_overrides = { kr = true, la = true }
|
||||
|
||||
function keyboard.installed()
|
||||
local values = keyboard.vconsole()
|
||||
if read_values("/etc/omarchy/input-method").XKB_LAYOUT == "kr"
|
||||
local override = read_values("/etc/omarchy/input-method").XKB_LAYOUT
|
||||
if desktop_overrides[override]
|
||||
and (values.XKBLAYOUT or "us") == "us"
|
||||
and (values.XKBVARIANT or "") == "" then
|
||||
values.XKBLAYOUT, values.XKBVARIANT = "kr", ""
|
||||
values.XKBLAYOUT, values.XKBVARIANT = override, ""
|
||||
end
|
||||
return values
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user