View Full Version : How do I create a shortcut to switch workspaces?
April 22nd, 2008, 06:44 PM
I have four workspaces but can only switch to 2 of them directly with a keyboard shortcut. How can I add a keyboard shortcut for 3 and 4?
April 22nd, 2008, 06:54 PM
What are the keyboard shortcuts currently?
And you can use Ctrl+Alt+Left/Right to move between workspaces in a linear manner :)
April 22nd, 2008, 06:55 PM
What shortcut are you using to switch?
Do you have Compiz Settings Manager installed?
April 22nd, 2008, 06:57 PM
I set them to ctrl-1 and ctrl-2, so I can just use my left hand. I know you can move along them in a line, but I want to be able to move to them in an absolute way.
April 22nd, 2008, 07:00 PM
If you set them yourself, can you not set Ctrl+3/4 the same way? Seems like you should be able to :)
April 22nd, 2008, 07:06 PM
Therein lies the rub. On the keyboard shortcuts menu there are options for "switch to workspace 1" and "switch to workspace 2" but not for 3 and 4.
April 22nd, 2008, 07:09 PM
I am in Hardy, but I have 'Switch to Workspace 1-4' in my keyboard shortcuts menu. If you were planning to upgrade, it might be best to just sweat it out for two more days. If you wern't planning to upgrade, try downloading the CCSM, It has a few more options that you may be able to play with.
April 22nd, 2008, 07:12 PM
Ah, found the fix :)
Fire up a terminal, and type (or copy)
Then choose apps > metacity > global_keybindings (some scrolling required)
Your commands are in there, you just need to assign a key to them :)
April 22nd, 2008, 07:15 PM
Ahh, thankyou very much.
Still should've been in the menu. Grr.
April 22nd, 2008, 07:21 PM
It probably should, but Ubuntu comes with only 2 workspaces enabled by default if I remember right. So that would also explain why there was only 2 options available :)
April 22nd, 2008, 07:26 PM
1. Press <ALT>+F2
2. Type "gconf-editor" (w/o quotes) and hit enter.
3. Navigate to apps>metacity>global_keybindings
4. Scroll down to the switch_to_workplace_1 (thru 12) keys
5. Change what you need.
You have to type in what you want, there is no capture.
EDIT: Oops, I forgot to mention that this is for Gnome; I don't know abour KDE or other DEs.
April 25th, 2008, 06:48 AM
So if I wanted to make the "home" button the toggle between screens key, what would the name for the home button be?
To copy something it is <control><c>.
What do I type between the <> to make the little house button the button I want?
April 25th, 2008, 06:23 PM
To get keycodes and names, open a terminal window and type:
xev and hit enter.
Press any key and you'll get a lot of info related to that key including its key code and name.
For example here's the output of xev when I press the home key:
KeyPress event, serial 30, synthetic NO, window 0x3200001,
root 0x187, subw 0x0, time 2256951755, (256,233), root:(267,281),
state 0x10, keycode 97 (keysym 0xff50, Home), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
So using <home> should work as an input string.
As far as using the home key to toggle between screens, I don't know if that is possible. There is no option to do that in gconf-editor.
September 13th, 2009, 08:52 PM
This works great! It's very clear and easy to do.
Powered by vBulletin® Version 4.2.1 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.