As an example, are qdbus-qt6 org.kde.kglobalaccel /component/kwin invokeShortcut "Window Close" [1] and kdotool windowclose $(kdotool getactivewindow) 1:1 equivalent?
kdotool talks to KWin using the KWin Scripting API which can do more things that are not possible with the KWin DBus API
1 Like