Skip to content

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

License

Notifications You must be signed in to change notification settings

dflock/swap-xfce-workspaces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

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

Topics

Resources

License

Stars

Watchers

Forks

Languages