I am running Fedora 14. I would like to (at least partially) emulate the behaviour of Windows when you hit Win+Arrow Key. That is, I would like it to "snap" to the left/right sides of the screen.
I am not very familiar with Linux/Unix, but here is what I have come up with:
xdotool getactivewindow windowmove 0 0 xdotool getactivewindow windowmove 1680 0
for moving the current window to the left/right monitor respectively. This would work fine for my purposes, but for some programs it fails to work if the window is maximized. Does anyone know a good way to do this? I suppose one solution would be to restore the window if it is maximized, move it, then maximize it, but I don't know how to do this either.