How to swap option and command in Italian layout?

If you are using an Apple keyboard, you can run
echo 1|sudo tee /sys/module/hid_apple/parameters/swap_opt_cmd

To make it persistent, you can pass it as a boot parameter via GRUB by running
grubby --update-kernel=ALL --args="hid_apple.swap_opt_cmd=1"

2 Likes