There is a well-known method on how to make function keys work on Apple keyboards in Ubuntu:
echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode
However, is there a way to do that with no root? Perhaps through
I've got the desired behavior for a few selected keys using
xmodmap (it was a bit annoying as I had to launch a separate X to stop the media key being intercepted by Gnome, but at the end I've got a keycode).
So I guess I've found a workaround. A more general solution would be very welcome, of course.