dotfiles/.config/hypr/config/kb_layouts/fr.lua

19 lines
582 B
Lua
Raw Normal View History

2026-08-04 11:15:48 +02:00
--# Overrides inputs for AZERTY layout
hl.config({
input = {
kb_layout = "fr",
},
})
--# Keybindings
2026-08-04 11:39:33 +02:00
-- 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 }))
2026-08-04 11:39:33 +02:00
end
2026-08-04 11:15:48 +02:00