This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KDE4 scripting

Tags: None
(comma "," separated)
mpk
Registered Member
Posts
1
Karma
0

KDE4 scripting

Tue Mar 01, 2011 4:19 am
I'd like to create a GUI that allows me to trigger certain behaviors from panel buttons or from Plasmoid apps. I'd like to:

1) Change workspace backgrounds
2) Dynamically add and remove workspaces
3) Open and close more than one Plasmoid app with specific geometries and associate them with certain workspaces
4) Open and close more than one standard (non-Plasmoid) program with specific geometries and associate them with certain workspaces
5) Dynamically configure folder view apps

Is any of this possible with KDE4 scripting? I envisioned using one activity per workspace.

Thanks for your help.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KDE4 scripting

Tue Mar 01, 2011 6:10 am
Plasma scripting can modify activity wallpapers, and add applets to activities. You may need to use D-Bus to communicate with a seperate process to add/remove activities. Executing applications may not be possible though from Javascript, although if you have access to D-Bus you can communicate with KLauncher to run applications. Folder View, like all other applets can be managed with scripting as well...

There may be snags though, as Plasma applets and Plasma startup scripts are run with different levels of sandboxing.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft