Disabling the fn key in Wayland?

https://piefed.blahaj.zone/post/340904

Disabling the fn key in Wayland?

Hi! So, I have a 2014 MacBook Pro with the fn key permanently taped down. Which is fine when running macOS, as the fn key is disabled in system set…

FN keys are usually handled at a firmware, sometimes BIOS or driver level. This makes them completely inaccessible to keyboard remappers (they have no idea when it is pressed), which is why none of them can do this.

This Stackexchange answer looks like it should contain the information you need, but I don’t have a 2014 MacBook to test it.

On an Apple Keyboard under Linux, how do I make the Function keys work without the fn modifier key?

I use an Apple wired keyboard on Linux. By default the function keys (F1, F2, F3, etc) require the fn key to be pressed for them to work. Without the fn key, these keys control the features like Sc...

Unix & Linux Stack Exchange

Oh my gosh! It worked! It totally worked! You’re awesome! Thank you so, so much!

To disable the fn key temporarily:
echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode

To disable the fn key permanently:
echo options hid_apple fnmode=0 | sudo tee -a /etc/modprobe.d/hid_apple.conf

And then regenerate the initramfs. If you’re using Arch like me, it’s:
sudo mkinitcpio -P

Being once again able to use my laptop while resting my back will make life much better.

Thank you to infinity and beyond! Blåhaj bless you. <3

You’re welcome, glad I could help :)
You really did! Thank you again. c: