Page 1 of 1
(JWM) Always have window open centered
Posted: Thu Feb 09, 2023 3:07 pm
by bigpup
MochiMoppel provided this info. (full credit)
Original post:
viewtopic.php?p=47942#p47942
To have windows open always centered on desktop.
Code: Select all
<Group>
<Option>centered</Option>
</Group>
into /root/.jwm/jwmrc-personal (e.g. right before the closing </JWM> tag), then open console and run
Note that this will center every new window.
Re: (JWM) Always have window open centered
Posted: Thu Feb 09, 2023 8:50 pm
by Grey
bigpup wrote: Thu Feb 09, 2023 3:07 pm
Note that this will center every new window.
It is advisable to add to this info that user can do this not for all windows, but specify the desired program whose window will be centered. To do this, you also need to specify the name that is used to run.
For example, for a "naughty" SNES emulator (Snes9x GTK version) that keeps trying to appear on the left side of the screen:
Code: Select all
<Group><Name>snes9x-gtk</Name><Option>centered</Option></Group>
Re: (JWM) Always have window open centered
Posted: Fri Feb 10, 2023 1:12 am
by MochiMoppel
@bigpup I appreciate your efforts to collect useful information from forum threads and add them to the HOW-TO section, but please, when you do then always, always provide a link to the originating thread. This will create an audit-trail and give readers a chance to understand the context and add own comments to the originating thread.
If you would have done this it would be clear that I just answered the request of a user but that I do not recommend this tweak:
MochiMoppel wrote: Wed Jan 26, 2022 1:29 am I understand that it can be useful for *some* windows, e.g. alerts, but for all? You'll constantly have to drag them "out of the way" so that they don't get obscured by the next window piled on top of it.
Re: (JWM) Always have window open centered
Posted: Fri Feb 10, 2023 8:20 am
by bigpup
Added link to first post.