Bug 445129

Summary: Provide an ability to emit dbus signals and react to the method calls, so that other programs could interact with a KWin Script
Product: [Plasma] kwin Reporter: Mikhail Zolotukhin <mail>
Component: scriptingAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: bjorn.bidar, maximtsyba, natalie_clarius, nate, postix
Priority: NOR    
Version: 5.23.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mikhail Zolotukhin 2021-11-07 16:55:29 UTC
SUMMARY
I would like to control my KWin script via Plasma Applet. To do this, I need an IPC between the Plasma Applet and the KWin Script.

One of the ways I think this could be possible is via global functions in the scripting API:
1. Register and emit a dbus signal, so that external programs could react to it
2. Call a DBus method (already implemented)
3, Register a method, that could be called by an external program
Comment 1 Björn Bidar (Thaodan) 2023-10-10 23:39:24 UTC
Something like i3 IPC in Kwin would be great. The protocol is very simple, uses existing standard (json), it is ideal to talk from other programs to the window manager.
Another way is to use the Kwin scripting api with a module that talks to another program.