dflock / swap-xfce-workspaces

Swap/move the current Xfce workspace (and all its windows), with either the next, previous or a specified target workspace.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

swap-xfce-workspaces

Swap/move the current Xfce workspace, with either the next, previous or a specified target workspace.

Requirements

You need wmctrl installed. See: https://www.freedesktop.org/wiki/Software/wmctrl/

For Xubuntu, you can do:

$ sudo apt install wmctrl

Installation

$ 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:

$ swap-xfce-workspaces <target workspace id>
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:

$ swap-xfce-workspace prev
$ swap-xfce-workspace next

Credits

The rename desktop code came from https://github.com/ngeiswei/rename-xfce-workspace

About

Swap/move the current Xfce workspace (and all its windows), with either the next, previous or a specified target workspace.

License:GNU General Public License v2.0


Languages

Language:Shell 100.0%