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

19 lines
574 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 = 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
2026-08-04 11:15:48 +02:00