

Here’s a KDE-specific script with kdotool
(Wayland always needs custom solutions for simple things):
#!/bin/bash
WIN="$(kdotool search --class org.kde.konsole | head -1)"
if [[ "$WIN" != "" ]]; then
kdotool windowactivate "$WIN"
else
konsole
fi
Like Firefox ScreenshotGo? (I think it only supports English though)