HI.
I’m new user and the configuration file change when I try to learn it.
I find how to change workspace with french keyboard cause I dont find it on the web. The new lua config file use a For loop, and we can’t change the key like in old conf file.
The original workspace part of conf file :
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
to make it work with french keyboard, we use the code of keys 1 to 0 ( code:10, code:11, ect..)
and the variable key must be i -1
for i = 1, 10 do
--local key = i % 10 -- 10 maps to key 0
local key = i -1
hl.bind(mainMod .. " + code:1" .. key, hl.dsp.focus({ workspace = i}))
hl.bind(mainMod .. " + SHIFT + code:1" .. key, hl.dsp.window.move({ workspace = i }))
end
Just change key variable and add “ code:1 “ in the 2 lines.