How can I set up my Xubuntu to quickly use a hotkey (super + direction keys) like Aero Snap in Windows 7?

link|improve this question

75% accept rate
The XFCE Window Manger easily allows you to set maximize/minimize (hide) shortcuts. Any suggestions on how to have things take up only half the screen? – wag2639 May 19 '10 at 0:35
which version of Xubuntu are you using? – quack quixote May 29 '10 at 23:34
feedback

4 Answers

install Compiz, go to your System menu > CompizConfig Settings Manager > right at the end of the window under Window Management Section click on Snapping Windows > Choose the key bindings and behaviour and then click Enable Snapping Windows from the left side of the window and you are done :)

link|improve this answer
how do do the key bindings? – wag2639 Aug 25 '10 at 3:55
use the key u choose + arrow keys (right, left, etc...) – eslambasha Aug 25 '10 at 22:44
feedback

There are verious daemons in the open source world that will handle multi-media keyboards or "hot keys"

Maybe this project will be useful to you:

hotkeys @ freshmeat.net

link|improve this answer
feedback

If you don't want to install Compiz on Xubuntu, you can still gain some useful window manager keyboard shortcuts with XFCE. In Xubuntu 11.10 I've setup keyboard shortcuts for the following actions (you can configure your own keyboard shortcuts by going to Settings Manager > Window Manager > Keyboard):

  • Maximize window horizontally (<Super>h)
  • Maximize window vertically (<Super>v)
  • Fill window (<Super>w)
  • Fill window horizontally (<Shift><Super>h)
  • Fill window vertically (<Shift><Super>v)

Obviously, none of the above actions will move windows or make them precisely 50% width as the "aero" stuff does, but they're helpful nonetheless. For example, if you want two windows, side by side, at full height, you might:

  1. Snap one window to the upper left corner, and drag to adjust width if needed
  2. <Super>v (to maximize vertically)
  3. Resize/drag second window to the right of the first, if needed (just so they're not overlapping)
  4. <Super>w (to maximize second window in remaining space)

Granted, that's a bit more work than the Unity "aero" like behavior; I still find those window manager shortcuts rather useful.

link|improve this answer
feedback

This page shows how to do it with wmctrl (it's in the Ubuntu repositories, tiny program that stays out of your way until you call it) and even how to call the command with mouse gestures (though fortunately you can just ignore that if you want …). Note that you'll have to un-blogify the quotes on the commands shown there. Jamie Krug already showed how to get keybindings for maximising etc., bind a key to

WIDTH=`xdpyinfo | grep 'dimensions:' | cut -f 2 -d ':' | cut -f 1 -d 'x' `&& HALF=$(($WIDTH/2)) && wmctrl -r :ACTIVE: -b add,maximized_vert && wmctrl -r :ACTIVE: -e 0,$HALF,0,$HALF,-1

to make the window fill the right 50% of your screen, etc.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.