There is a Launcher icon for Expo Mode (Super-S) located in the Launcher. Is there a way to put a Launcher icon for Spread Mode (Super-W) in the Launcher?
Normally, you could do this with compiz's d-bus integration, but it appears to be broken in natty.
Instead, we can do this with xdotool.
Create a script called
(If you have a different binding, just replace Super with the meta key you use and Tab with the letter you use.)
Make the script executable:
Create an app file called
Be sure to replace YOURUSERNAME with your user name.
In order to add to the launcher, the app file must be part of the system configuration. (If you just want it available as a search result, you can put it in ~/.local/share/applications .) We'll add a link to the file you created (so your setup is portable to new installs).
Now invoke the dash and search for "Scale". Your new app should show up. Click and drag it to the launcher. You should now be able to invoke scale from your launcher.
However, if you change your key binding it will break and you'll have to update your script. Also, it can't be invoked multiple times quickly. The launcher seems to have some double-click detection that prevents an app from being launched twice, so you have to wait before you can click again.
To do this right click the desktop and create a launcher.
Give it a name such as "Spread Mode" and choose an appropriate icon
In the command field copy and paste the following
next in a terminal:
Drag and drop the new Spread Mode Launcher Icon into the Unity Launcher.
Create a launcher and exec this:
(copy and save this to the filename you used at the Exec line)
I did not create this but found it on this feature request. So kudos go to Daniel Fore
Originally this was not created for Unity but for 'elementary OS'. Should work though.
In addition to the button/launcher, note that you can also assign it to a 'hot spot' corner of the screen. (Similar to the way Gnome 3 does this; when you move the mouse to the very top-left, it will show all open windows in spread mode.)
To do this in Unity it's a bit harder than it should be, but still straightforward:
I don't think you can because the workspace icon is hardcoded into the launcher.
if you open CCSM and goto scale plugin you can set a corner of the screen to do this task.
open ccsm - scale - bindings