An open API service indexing awesome lists of open source software.

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.

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