Re: Resize windows like MS Windows
Bob Hepple <[email protected]> Thu, 4 Feb 2016 12:42:54 +1000
| Newsgroups | gmane.comp.window-managers.fluxbox.user |
|---|---|
| Message-ID | <CAHzpm2hJ30pkt_Fx9juOz9nFR7D0=aXec+4n=UhQLhhbdzTV7A@mail.gmail.com> |
Nice idea! but I think there are a couple of gotcha's - things that plague any kind of scripting approach to this (as opposed to having built-in functionality in the WM). o it doesn't understand multiple monitors o it doesn't take struts (slit/toolbars) into account o it doesn't always get the right window for 'restore' I've struggled with these things for a while myself and while I haven't tried to copy the windows behavior, I have some scripts that I find useful in fluxbox and other EWMH-compatible window managers - I've been able to get them to work on KDE and gnome. Note that instead of xdotool I use the older wmctrl utility. There's a bit of a description here: http://bhepple.com/doku/doku.php?id=fluxbox I'm pretty sure you could cobble together something to do what you want using the routines in xwin-utils etc - the downloads are here: http://bhepple.com/doku/doku.php?id=fluxbox#downloading Cheers Bob On 2 February 2016 at 07:09, Rohit Haldipur <[email protected]> wrote: > > I'd like to resize the windows like it is done in >> >> MS Windows 7 and >> above. >> >> For now I have this: >> >> 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 > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Fluxbox-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fluxbox-users > > ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Fluxbox-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fluxbox-users