Rohit Haldipur
2016-02-01 21:09:21 UTC
I'd like to resize the windows like it is done in
ââ
MS Windows 7 and
above.
Mod4 Up :Maximize
Mod4 Left :MacroCmd {ResizeTo 638 100%} {MoveTo 0 * Left}
{MaximizeVertical}
Mod4 Right :MacroCmd {ResizeTo 638 100%} {MoveTo 0 * Right}
{MaximizeVertical}
Mod4 Down :ResizeTo 638 50%
But it would be nice to have `Mod4 Down` to resize and move the window
back to its original size and position.
Any ideas?
âââ
MS Windows 7 and
above.
Mod4 Up :Maximize
Mod4 Left :MacroCmd {ResizeTo 638 100%} {MoveTo 0 * Left}
{MaximizeVertical}
Mod4 Right :MacroCmd {ResizeTo 638 100%} {MoveTo 0 * Right}
{MaximizeVertical}
Mod4 Down :ResizeTo 638 50%
But it would be nice to have `Mod4 Down` to resize and move the window
back to its original size and position.
Any ideas?
Hey Thomas,
It didnt take too long to discover `xdotool` is *the* tool for the job.
I've written a script around it that mostly does the job. Since it doesn't
contain fluxbox-specific script, I'd reckon it would work just as well (or
badly) with any other window manager.
I've put it up here for anyone interested
https://github.com/rohit-h/window-resizer/blob/master/resizer.sh
Do report bugs/improvements. I'm interested to see what use cases others
might have.
Cheersâ!
Rohitâ