Bug 445129 - Provide an ability to emit dbus signals and react to the method calls, so that other programs could interact with a KWin Script
Summary: Provide an ability to emit dbus signals and react to the method calls, so tha...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: scripting (show other bugs)
Version: 5.23.2
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-07 16:55 UTC by Mikhail Zolotukhin
Modified: 2023-10-10 23:39 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.