I use plank for my icon dock on KDE and I would really like to have an icon in my dock that does the same as the ‘present all windows’ feature when I run my mouse to the top left corner of my screen. How can I do this? On a previous distro I used “elementary OS” this was an icon in its plank but as a native application.
But how do I make it an actual file? I still am not clear which “create new” file to choose. Which one is the correct one? And can I give an icon to it too?
One way would be to use the KDE Menu Editor program, chose “New Item”, and put the command in the “Program” line. You could also make a file named something like showall.desktop (or whatever other name you prefer) in ~/.local/share/applications using the template on https://wiki.archlinux.org/title/Desktop_entries#File_example.
In either case, once you have a desktop file, you should be able to add it to the dock just like any other application.