The currently running activity Id is not available to KWin scripts. Also, there isn't a signal available for when switching to a different activity. (Right now, we can use currentDesktopChanged(), since it triggers when switching activity, but it's not optimal) Reproducible: Always Expected Results: It would be handy to have a string property, in the Workspace, to hold the current activity, and a signal (maybe currentActivityChanged) similar to currentDesktopChanged, also on Workspace.
Git commit 3071d561f5708ddc40aad3e9e6ed5218476fe64b by Martin Gräßlin. Committed on 21/06/2012 at 20:37. Pushed by graesslin into branch 'master'. Add activity support to Workspace Script Wrapper and Effects New properties for the current activity and the available activities plus related signals in scripts. Signals added to effects. FIXED-IN: 4.9.0 M +3 -0 kwin/effects.cpp M +22 -1 kwin/libkwineffects/kwineffects.h M +7 -0 kwin/scripting/workspace_wrapper.cpp M +24 -0 kwin/scripting/workspace_wrapper.h M +7 -4 kwin/workspace.cpp M +19 -2 kwin/workspace.h http://commits.kde.org/kde-workspace/3071d561f5708ddc40aad3e9e6ed5218476fe64b