https://github.com/dflock/swap-xfce-workspaces
Swap/move the current Xfce workspace (and all its windows), with either the next, previous or a specified target workspace.
https://github.com/dflock/swap-xfce-workspaces
workspace workspaces xfce xfwm
Last synced: 7 months ago
JSON representation
Swap/move the current Xfce workspace (and all its windows), with either the next, previous or a specified target workspace.
- Host: GitHub
- URL: https://github.com/dflock/swap-xfce-workspaces
- Owner: dflock
- License: gpl-2.0
- Created: 2020-12-15T10:05:03.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T15:24:53.000Z (about 1 year ago)
- Last Synced: 2025-03-14T18:59:40.718Z (7 months ago)
- Topics: workspace, workspaces, xfce, xfwm
- Language: Shell
- Homepage:
- Size: 25.4 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
# swap-xfce-workspaces
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.
## Requirements
You need `wmctrl` installed. See: https://www.freedesktop.org/wiki/Software/wmctrl/
For Xubuntu, you can do:
```shell
$ sudo apt install wmctrl
```## Installation
```shell
$ sudo cp swap-xfce-workspaces.sh /usr/bin/swap-xfce-workspaces
```## Usage
### Swap with specific workspace, by ID
You can swap the current workspace with any other by passing in the target workspace id:
```shell
$ swap-xfce-workspaces
```NOTE: This expects XFCE workspace numbers, which start from 1.
### Swap with previous or next workspace
This will move the current workspace left or right, by swapping it with the previous or next workspace:
```shell
$ swap-xfce-workspace prev
$ swap-xfce-workspace next
```## Credits
The rename desktop code came from https://github.com/ngeiswei/rename-xfce-workspace