For this tutorial I am assuming you already have linux set up with the KDE + graphics acceleration rootfs. If you haven't set it up. Check out how to do that in this thread: https://gbatemp.net/threads/quick-tuto-how-to-boot-linux-on-your-switch.501918/
This tutorial is based off an existing tutorial for the raspberry pi: https://www.raspberrypi.org/forums/viewtopic.php?t=186547 The run script isn't mine and was written by rogerallen, i have adapted it to work on the nintendo switch.