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

How to switch activities in scripts?

Tags: None
(comma "," separated)
kmcbenth
Registered Member
Posts
6
Karma
0

How to switch activities in scripts?

Tue Jun 02, 2015 12:20 am
Hi,
I always used scripts to build shortcuts to my different activities, mostly by using mouse gestures. In KDE4 it worked like this:

Code: Select all
qdbus org.kde.kactivitymanagerd /ActivityManager/Activities ListActivities

qdbus org.kde.kactivitymanagerd /ActivityManager/Activities SetCurrentActivity <activity-id>


However, this does not work anymore, it tells me there is no org.kde.kactivitymanagerd service. How do I switch to a specified activity in Plasma 5? (in a script, I know about meta-q and the activity list in the taskbar)

Thanks for any help in advance!
luebking
Karma
0
qdbus org.kde.ActivityManager

Also advertising
https://github.com/luebking/KLItools/bl ... activities
kmcbenth
Registered Member
Posts
6
Karma
0
Thanks mate, that's exactly what I was looking for!

problem solved


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]