2

On Ubuntu there is a nice feature that allows windows to auto-resize (for example to half-screen width) and be "magnetized" to the corners of the screen. Lubuntu on the other hand does not appear to have this feature. Is there a way to achieve this by installing some package but without installing another desktop environment in place of LXDE?


I've just found a related question where a fix is proposed: Is there a lightweight way to snap windows in Lubuntu? However the post is a few years old. Is this solution still up to date?

DK Bose
  • 42,548
  • 23
  • 127
  • 221
Riku
  • 121
  • There is no LXDE packages for that. In fact, it's more about windows manager wich is by default on LXDE "openbox". – Jeryosh Nov 29 '19 at 20:37
  • @JerareYoshi Thank you for your comment. Then what can I do to obtain the desired effect with openbox? – Riku Nov 29 '19 at 20:40
  • There is no such effect. – Pilot6 Nov 29 '19 at 20:51
  • 1
    @Pilot6 I've just found a related question where a fix is proposed: https://askubuntu.com/questions/73536/is-there-a-lightweight-way-to-snap-windows-in-lubuntu However the post is a few years old. Is this solution still up to date? – Riku Nov 29 '19 at 20:54
  • I think the solution is probably still up to date since openbox related doesn't change too much. – Jeryosh Nov 29 '19 at 21:01
  • @Riku Oh, great to know. I hate this feature, but it's good to know. – Pilot6 Nov 29 '19 at 21:16
  • 1
    Short answer is "yes,can be done", but long answer is that it requires scripting and making the script work with keybindings. Back when I used to use openbox myself, I've written a few scripts for resizing and repositioning windows with wmctrl ( you can read about it here https://askubuntu.com/q/94859/295286 ) and I think this is one of those https://askubuntu.com/a/678716/295286 Adding keybindings can be done via specific xml file, http://openbox.org/wiki/Help:Bindings So yes, possible, but probably not easy – Sergiy Kolodyazhnyy Nov 30 '19 at 00:22
  • You haven't said what release, but given LXDE hasn't progressed in years, little has changed (prior comment asking about "post is a few years old") with Lubuntu's Next (LXQt) first provided with 15.04 even if it only hit mainstream last year (18.10 release). I'd suggest @SergiyKolodyazhnyy is possibly your best bet (I'd want release detail to think of more) – guiverc Nov 30 '19 at 00:59
  • @guiverc The latest version: Lubuntu 19.10. And thanks for your advice. – Riku Nov 30 '19 at 02:04
  • Have you seen https://askubuntu.com/questions/1182097/lubuntu-19-10-how-to-tile-windows-the-window-tiling-section-is-missing-in-lxqt? – DK Bose Nov 30 '19 at 02:34
  • @JusticeforMonica Do I understand correctly that these are manual shortcuts but the windows do not resize/snap automatically? – Riku Nov 30 '19 at 12:33
  • Yes, when you want to snap a window horizontally or vertically, you need to tell the system that by pressing the appropriate keybinding. Or do you want something that automatically positions windows somewhere? You'll need to make that clear by editing your question. – DK Bose Nov 30 '19 at 12:37
  • @JusticeforMonica I would like to achieve the same effect as in Ubuntu, where the snapping/resizing to half-screen of the windows is automatically obtained by just dragging them or double clicking on them. – Riku Nov 30 '19 at 12:38
  • Then maybe Ubuntu is the best choice. Lubuntu, being simpler by design, purposely doesn't come with all the features present in distros such as Ubuntu. – DK Bose Nov 30 '19 at 12:41
  • Or you could try Kubuntu which does what you want. – DK Bose Nov 30 '19 at 13:54

0 Answers0