Swap/move the current Xfce workspace, with either the next, previous or a specified target workspace.
This swaps over all the windows from the src and target workspaces, then swaps the workspace names.
You need wmctrl
installed. See: https://www.freedesktop.org/wiki/Software/wmctrl/
For Xubuntu, you can do:
$ sudo apt install wmctrl
You can swap the current workspace with any other by passing in the target workspace id:
$ swap-xfce-workspaces <target workspace id>
Note
|
This expects XFCE workspace numbers, which start from 1. |
The rename desktop code came from https://github.com/ngeiswei/rename-xfce-workspace