Centering a window regardless of display resolution

There is window rule:
center ([opt]) If the window is floating, will center it on the monitor. Set opt to 1 to respect monitor reserved area.

the thing is, I want horizontal centering, not vertical too