Re: Prevent windows off screen?
Mikael Magnusson <[email protected]> Fri, 9 Sep 2016 23:04:00 +0200
| Newsgroups | gmane.comp.window-managers.openbox |
|---|---|
| Message-ID | <CAHYJk3QRqh3WXga6X5Souz7fb6ZxV2LP=12HyRADu5fcNvZQKg@mail.gmail.com> |
On Fri, Sep 9, 2016 at 10:46 PM, Miles <[email protected]> wrote: > As I connect and disconnect external monitors and projectors, my > windows become inaccessible, larger than the monitor, or partially offscreen > > Is there any way to have openbox automatically resize and/or translate > windows to stay entirely on the screen? > > Thanks!. If you reconfigure your viewport with randr, then openbox will move any offscreen windows offscreen. Merely unplugging a monitor won't have any effect though. Eg what I use (probably somewhat antiquated but you get the idea), crton) xrandr --fb 1680x2074 --output DVI-D-0 --pos 0x0 --mode 1280x1024 --output DVI-I-1 --pos 0x1024 --mode 1680x1050 ;; crtoff) xrandr --fb 1680x2074 --output DVI-D-0 --off --output DVI-I-1 --pos 0x1024 --mode 1680x1050 ;; crtdisabled) xrandr --fb 1680x1050 --output DVI-D-0 --off --output DVI-I-1 --pos 0x0 --mode 1680x1050 ;; Only the last of these would make openbox move any windows around, because the actual server workspace gets smaller. -- Mikael Magnusson _______________________________________________ openbox mailing list [email protected] http://icculus.org/mailman/listinfo/openbox