Move windows between workspaces using keyboard shortcuts

Ok, this little how-to describes how to make the moving of windows between workspaces more convenient using shortcuts, instead of the usual way where you have to press on the menu, and choose to which workspace it should be put.

The following instructions makes you able to move the window to another workspace by, when already moving the window, pressing the number of the workspace; e.g. when moving a window around on the screen, press 1, and it will change to workspace 1.

The following assumes that you run ubuntu (8.04), and that you desktop effects are disabled (running metacity). I will come up with a solution for compiz whenever i have time.

First, install required packages.

sudo apt-get install devscripts build-essential fakeroot
sudo apt-get build-dep metacity

Now, download the patch from, the metacity source, and perform the patching;

apt-get source metacity
cd metacity-2.22.0
patch -p0 < /tmp/window_move_workspace.patch
debuild -us -uc
cd ..
sudo dpkg -i metacity*.deb

That is it. Restart the computer, and you are able to move the windows around easier then ever before:)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: