You are not logged in.

#1 2021-09-09 04:59:26

sillywalks
Member
Registered: 2021-08-14
Posts: 5

[SOLVED] Is there a way to switch KDE activities from CLI?

Hello,

is there a way to switch KDE activities from bash?

Maybe something similar to switching desktops like this?

$ xdotool set_desktop --relative -- +1

If not, is there a library function for that purpose somewhere that I can utilize with some basic C or Python skills?

Thanks in advance!

Last edited by sillywalks (2021-09-09 06:24:57)

Offline

#2 2021-09-09 05:32:23

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,680

Re: [SOLVED] Is there a way to switch KDE activities from CLI?

I don't use KDE any more, but I used to be able to switch activities using qdbus.

Something like this?

qdbus org.kde.kglobalaccel /component/plasma_desktop invokeShortcut "Next Activity"

Offline

#3 2021-09-09 06:24:18

sillywalks
Member
Registered: 2021-08-14
Posts: 5

Re: [SOLVED] Is there a way to switch KDE activities from CLI?

skunktrader wrote:

I don't use KDE any more, but I used to be able to switch activities using qdbus.

Something like this?

qdbus ...

Thanks a lot! :-) Got it working with:

$ qdbus org.kde.ActivityManager /ActivityManager/Activities org.kde.ActivityManager.Activities.NextActivity

Offline

Board footer

Powered by FluxBB