4

I wrote a nice little script that changes my monitor outputs according to whether an external monitor is connected or not and whether the laptop lid is open or closed or not and so on.

That works pretty well, the only thing is that when my big external monitor is unplugged the windows on the laptop screen exceed the workspace so that I would have to resize or reopen all windows first.

I am looking for a shell command or something that does this for me; it should just resize all windows so that they fit in the workspace.

Is this integrated in XFCE4? Or do I need some other program?

PS: I am using compiz as window manager and emerald for the decorations.

1 Answer 1

2

You can use xdotool, which is a command line tool for manipulating X windows, so it should work with every window manager and every desktop environment.

2
  • But you might add a link to xdotool.
    – Keith
    May 19, 2011 at 8:56
  • 1
    good point, added the link. You won't need to download it manually though, as there should be packages for most ditributions.
    – Kim
    May 19, 2011 at 9:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .