tcorreabr / Parachute

Look at your windows and desktops from above.
GNU General Public License v3.0
356 stars 32 forks source link

Support switching to different activities #74

Open muesli opened 3 years ago

muesli commented 3 years ago

It would be nice if Parachute could provide an overview of running activities as well, so I could use it to

  1. switch between activities
  2. move windows between activites
tcorreabr commented 3 years ago

Activities management support for KWin scripts is not yet complete. When it is this can be an enhancement.

alexjp commented 3 years ago

Slightly offtopic, but on latest Parachute version ( 0.9.1 ) and wayland, I have a kwin script that changes activities based on which virtualdesktop it is. Something like: ` var setActivity = function(activity) { callDBus("org.kde.ActivityManager", "/ActivityManager/Activities", "org.kde.ActivityManager.Activities", "SetCurrentActivity", activity, function() {}); };

var changeActivity = function() { if (workspace.currentDesktop == 1) return setActivity("23640271-fddc-4ea9-b462-11951441a153"); if (workspace.currentDesktop == 2) return setActivity("eac13d03-66ee-4822-9d40-fb093dd2bd4b"); [...........]

};

workspace.currentDesktopChanged.connect(changeActivity); `

The good thing is that Parachute works very well with this ( only issue is the wallpapers on the top bar ). But switching virtual desktops ( which also switches wallpapers ( switches activity )) works very well and its very smooth.

Eoin-ONeill-Yokai commented 3 years ago

Even if this was a wayland-only function, I would love this.