18 lines
582 B
Lua
18 lines
582 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 = 1, 10 do
|
|
local key = fr_digits_layout[(i%11)]
|
|
hl.bind(MainMod.. " + " .. key, hl.dsp.focus({ workspace = i }))
|
|
hl.bind(MainMod.. " + SHIFT + " .. key, hl.dsp.focus({ workspace = i }))
|
|
end
|
|
|