11

KDE 4.6 Plasma Workspaces added support for managing windows in Activities, which are a sort of combination between virtual desktops and session management. But I still haven't figured out some basic functionality, and khelpcenter doesn't seem to document the new Activities feature.

Particularly, how do you move a window to another KDE activity (i.e. using a keyboard shortcut)?

Oliver Salzburg
  • 89,072
  • 65
  • 269
  • 311
Mechanical snail
  • 7,963
  • 5
  • 48
  • 67

4 Answers4

9

If you click on the window top-left icon you will open the window menu; from there, if you have more than one activity opened, you will see a submenu entry that will let you select in which activities you want to see the current application window. Please note that any window can be shown in multiple activities at the same time, so, if you want to move it, i.e., from the "activity 1" to "activity 2", you have to check, in the said submenu, "activity 2" and uncheck "activity 1".

As far as I know, there aren't keyboard shortcuts, which is a true pity.

Sekhemty
  • 9,916
3

you can access the " operational menu " of the window ( the menu that unfolds when you click the icon in the upper left icon ) pressing alt+f3. then navigate the menu with arrows.

merchamion
  • 31
  • 2
1

My solution was to create hotkeys for this that change the '_KDE_NET_WM_ACTIVITIES' X-window property.

xprop -f _KDE_NET_WM_ACTIVITIES 8s -id $(xdotool getwindowfocus) -set _KDE_NET_WM_ACTIVITIES $YOUR-ACTIVITY-ID-CSV-LIST

I posted a script that creates a toggle feature and manages duplicates, etc. here: https://forum.kde.org/viewtopic.php?f=111&t=174102

0

Adding to kde-jon3's answer, I map these to keyboard shortcuts (my activities are named after the letters on my keyboard).

It's not pretty but it works.

xprop \
-f _KDE_NET_WM_ACTIVITIES 8s \
-id $(xdotool getwindowfocus) \
-set _KDE_NET_WM_ACTIVITIES \
$(dbus-send --session --dest=org.kde.ActivityManager \
  --type=method_call \
  --print-reply=literal \
  /ActivityManager/Activities \
  "org.kde.ActivityManager.Activities.ListActivitiesWithInformation" | 
 \
  grep <The name of your destination activity> | \
  awk -F ' ' '{ print $1 }'\
)
seelaman
  • 1
  • 1