How to swap option and command key and change how fn key works on mac keyboard

Hello,

I have a mac keyboard and I want to do 2 things:

  1. Make functional keys work as F1-F12 without having to hold Fn.
  2. Swap option and command keys.

I found archlinux documentation at archlinux wiki at https://wiki.archlinux.org/title/Apple_Keyboard#Function_keys_do_not_work

and this works:

echo 2 | sudo tee -a /sys/module/hid_apple/parameters/fnmode

echo 1 | sudo tee -a /sys/module/hid_apple/parameters/swap_opt_cmd

Unfortunately, those options reset after restart.

They also provide permanent solution on that website, but I couldn’t make it work because I don’t have mkinitcpio program.

How do I make those changes permanent?

Requirements:

I have Searched (https://forum.openmandriva.org/search) the forum for my issue and found nothing related or helpful
I have checked the Resources category (https://forum.openmandriva.org/c/resources/13) (Resources Index(https://forum.openmandriva.org/t/2768/1))
I have reviewed the Wiki(https://wiki.openmandriva.org/) for relevant information
I have read the the Release Notes and Errata(https://wiki.openmandriva.org/en/distribution/releases/current)

OpenMandriva Lx version:
OpenMandriva Lx release 26.02 (ROME) Rolling for x86_64

Desktop environment (KDE, LXQT…):
I guess KDE, because I have many programs starting with letter “K”.

Description of the issue (screenshots if relevant):

Relevant informations (hardware involved, software version, logs or output…):

PS the create new topic form forbids me to add links to my post, but the template already includes links in the requirements section

@gggg444
welcome1

Now you can.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.