18 lines
574 B
Lua
18 lines
574 B
Lua
--# Overrides inputs for AZERTY layout
|
|
hl.config({
|
|
input = {
|
|
kb_layout = "fr",
|
|
},
|
|
})
|
|
|
|
--# Keybindings
|
|
|
|
-- Switch workspaces with mainMod + [0-9]
|
|
-- Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
local fr_digits_layout = [ "ampersand", "eacute", "quotedbl", "apostrophe", "parenleft", "minus", "egrave", "underscore", "ccedilla", "agrave", ]
|
|
for i = 0, 10 do
|
|
key = fr_digits_layout[i%10]
|
|
hl.bind(mainMod.. " + " .. key, hl.dsp.focus({ workspace = i }))
|
|
hl.bind(mainMod.. " + SHIFT + " .. key, hl.dsp.focus({ workspace = i }))
|
|
end
|
|
|