echo "options hid_apple swap_opt_cmd=1 fnmode=2" >> /etc/modprobe.d/hid_apple.conf
or
nano /etc/modprobe.d/hid_apple.conf
add to file
options hid_apple swap_opt_cmd=1 fnmode=2
dracut -f
echo "options hid_apple swap_opt_cmd=1 fnmode=2" >> /etc/modprobe.d/hid_apple.conf
or
nano /etc/modprobe.d/hid_apple.conf
add to file
options hid_apple swap_opt_cmd=1 fnmode=2
dracut -f