# Window Rule always centers on the screen

**URL:** <https://discourse.ubuntubudgie.org/t/window-rule-always-centers-on-the-screen/4965>\
**Category:** Budgie Applets\
**Created:** [May 12, 2021, 3:17pm UTC](https://discourse.ubuntubudgie.org/t/window-rule-always-centers-on-the-screen/4965 "2021-05-12T15:17:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikashraghavan](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/vikashraghavan/32/3343_2.png) [@vikashraghavan](https://discourse.ubuntubudgie.org/u/vikashraghavan)\
**Post date:** [May 12, 2021, 3:17pm UTC](https://discourse.ubuntubudgie.org/t/window-rule-always-centers-on-the-screen/4965/1 "2021-05-12T15:17:37Z")

</div>

I added a window rule, but the window is always positioned at the centre of the screen !

XPosition=1  
XPosition=1  
Cols=2  
Rows=2  
XSpan=1  
YSpan=1  
Monitor=eDP-1

---

<div class="post-metadata">

**Author:** ![vlijm](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/vlijm/32/34_2.png) [@vlijm](https://discourse.ubuntubudgie.org/u/vlijm)\
**Post date:** [May 12, 2021, 4:40pm UTC](https://discourse.ubuntubudgie.org/t/window-rule-always-centers-on-the-screen/4965/2 "2021-05-12T16:40:31Z")

</div>

Let’s check a few things:

- What is the name of the file (in other words: what wm-class is it for)?
- Did you create the file in `~/.config/budgie-extras/shuffler/windowrules`?
- Did you enable rules (run `gsettings set org.ubuntubudgie.windowshuffler windowrules true`)?

---

<div class="post-metadata">

**Author:** ![vikashraghavan](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/vikashraghavan/32/3343_2.png) [@vikashraghavan](https://discourse.ubuntubudgie.org/u/vikashraghavan)\
**Post date:** [May 13, 2021, 5:33am UTC](https://discourse.ubuntubudgie.org/t/window-rule-always-centers-on-the-screen/4965/3 "2021-05-13T05:33:29Z")

</div>

I saved it as gnome-terminal.windowrule  
the configuration is as mentioned above.

[vrag@fedora ~]$ dconf read /org/ubuntubudgie/windowshuffler/windowrules  
true

the rule is also enabled

---

<div class="post-metadata">

**Author:** ![fossfreedom](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/fossfreedom/32/1405_2.png) [@fossfreedom](https://discourse.ubuntubudgie.org/u/fossfreedom)\
**Post date:** [May 13, 2021, 5:44am UTC](https://discourse.ubuntubudgie.org/t/window-rule-always-centers-on-the-screen/4965/4 "2021-05-13T05:44:39Z")

</div>

From here [Windows Rules (Shuffler) doesn't seem to work - #6 by vlijm](https://discourse.ubuntubudgie.org/t/windows-rules-shuffler-doesnt-seem-to-work/4877/6)

The filename extension is windowrule not widowrule

---

<div class="post-metadata">

**Author:** ![vikashraghavan](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/vikashraghavan/32/3343_2.png) [@vikashraghavan](https://discourse.ubuntubudgie.org/u/vikashraghavan)\
**Post date:** [May 13, 2021, 5:58am UTC](https://discourse.ubuntubudgie.org/t/window-rule-always-centers-on-the-screen/4965/5 "2021-05-13T05:58:21Z")

</div>

sorry for the typo in the comment.  
the file in my location is saved correctly

I mentioned XPosition instead of YPosition 😅

It’s working fine after i change it.

> XPosition=1  
> XPosition=1  
> Cols=2  
> Rows=2  
> XSpan=1  
> YSpan=1  
> Monitor=eDP-1

And one more thing to mention. (A feature request)  
It would be better to have an option to stack the second terminal next to the first terminal.  
Since this effect is applied not like layout option, it is applied always on regular use (not for the predetermined collections of windows), it would be better to stack the windows when the window rule is used on the same window (or can be given as an option to enable stacking horizontally/vertically in window rule).

---

<div class="post-metadata">

**Author:** ![vlijm](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/vlijm/32/34_2.png) [@vlijm](https://discourse.ubuntubudgie.org/u/vlijm)\
**Post date:** [May 13, 2021, 6:18am UTC](https://discourse.ubuntubudgie.org/t/window-rule-always-centers-on-the-screen/4965/6 "2021-05-13T06:18:32Z")

</div>

Although strictly, this would be a window rule thing, this feature might suit better as an option to the “(re-) arrange all” -option, limiting it to one wm-class. This is about automatically arranging multiple windows of one application on launch. Squeezing that into an already pretty crowded layouts & rules set of option might create a jungle-feeling.  
For the same reason, there are limitations to what options can be offered without shooting oneself in the foot with too many options. New options will only applied if we can keep it kind of simple, which is the reason for a new Shuffler GUI.
