Tag Archives: kernel

Switch ALT with CMD on Apple keyboards on Linux with Kernel 3.13

A feature introduced in kernel 3.13 enables you to easily switch alt and cmd keys on apple keyboards. The following is for Fedora 20:

Switch alt and cmd temporarily (as root). Note that GNOME 3 didn’t seem to realize that during my limited testing, whereas Mate picked it up on the fly:

echo "1" > /sys/module/hid_apple/parameters/swap_opt_cmd

Edit/create /etc/rc.d/rc.local with the following contents to make this permanent:

echo "1" > /sys/module/hid_apple/parameters/swap_opt_cmd

Make it executable:

chmod 700 /etc/rc.d/rc.local