Numlock on version 2026.1

Then we’ve found the problem.

/home/marc/.config/hypr/conf/autres/keyboard.conf: numlock_by_default = true

This keyboard.conf file is doing nothing, because you aren’t calling it as a source in your hyprland.conf. So you’re not actually setting numlock on at all.

Hyprland only reads from a single conf file: ~/.config/hypr/hyprland.conf
Unless it’s told otherwise. That’s done so by using the source keyword.

So the only two “numlock” lines you have that are actually doing anything are

/home/marc/.config/hypr/hyprland.conf:exec-once = numlockx on
/home/marc/.config/hypr/hyprland.conf:exec-once = hyprctl keyword input:numlock_by_default

But as far as I can tell, the first would only do something if you had the numlockx package installed, and then it’s only supposed to work for X11 so I’m not sure if would do anything even then. And I don’t think the second line does anything either.

So, let’s try something simple to see if we can get this to work.
Comment out the two lines your currently have in your hyprland.conf

# exec-once = numlockx on
# exec-once = hyprctl keyword input:numlock_by_default true

and add your keyboard file as a source in hyprland.conf

source = ~/.config/hypr/conf/autres/keyboard.conf

Then restart.