(JWM) Always have window open centered

Moderator: Forum moderators

Post Reply
User avatar
bigpup
Moderator
Posts: 6272
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 733 times
Been thanked: 1294 times

(JWM) Always have window open centered

Post 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

Code: Select all

jwm -restart

Note that this will center every new window.

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
Grey
Posts: 1984
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 75 times
Been thanked: 355 times

Re: (JWM) Always have window open centered

Post 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>

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

User avatar
MochiMoppel
Posts: 1117
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 17 times
Been thanked: 359 times

Re: (JWM) Always have window open centered

Post 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.

User avatar
bigpup
Moderator
Posts: 6272
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 733 times
Been thanked: 1294 times

Re: (JWM) Always have window open centered

Post by bigpup »

Added link to first post.

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Post Reply

Return to “Tips & Tweaks”