Small post so tell how I can use a Logitech K480 with the function keys working the way I want them to work. Found this github repo to switch function keys.
Downloaded it, compiled it using
build.sh and ran it as
sudo ./k480_conf -f on
And it works just fine.