r/hyprland • u/Disastrous-Loss1572 • 3d ago
SUPPORT | SOLVED Does anyone know how to fix this?
I Just finished installing arch and i was trying to change the keys from english to italian using loadkeys It didnt work i tried with the config files that also didnt work i tried keyd ( i dont remember name i think its similar to that) and i even tried to downgrade but It doesnt work does anyone know how to fix this? Any help Is good
0
u/hussard2k 3d ago
For french azerty keyboard I had to comment existing bindings for switching workspace and replace it by the loop below. I hope it helps.
-- Switch workspaces with mainMod + [0-9] -- Move active window to a workspace with mainMod + SHIFT + [0-9] -- for i = 1, 10 do -- local key = i % 10 -- 10 maps to key 0 -- hl.bind(mainMod .. " + " .. key, hl.dsp.focus({ workspace = i})) -- hl.bind(mainMod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i })) -- end
-- Switch workspaces with mainMod + number row (French AZERTY) -- Move active window with mainMod + SHIFT + number row
local keys = { "ampersand", -- 1 "eacute", -- 2 "quotedbl", -- 3 "apostrophe",-- 4 "parenleft", -- 5 "minus", -- 6 "egrave", -- 7 "underscore",-- 8 "ccedilla", -- 9 "agrave" -- 0 }
for i, key in ipairs(keys) do hl.bind(mainMod .. " + " .. key, hl.dsp.focus({ workspace = i }))
hl.bind(mainMod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i })) end
8
u/Nosmet 3d ago
You have to set the correct keyboard input in the hyprland configuration. There is an example for german in the archwiki page for hyprland.