The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

Floating windows initial position

asked 2012-12-24 21:25:23 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

Is it possible to force the initial position for a "floating enable" window? (By default, it appears on the center of the screen)

More specifically, I'm trying to put a simple GTK calendar near the bottom-right corner:

for_window [class="Gsimplecal"] floating enable
for_window [class="Gsimplecal"] border none

I tried something like:

for_window [class="Gsimplecal"] geometry {"x": 1600, "y": 1, "width": 150, "height": 150}

but no luck.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2012-12-24 21:45:52 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

i3 respects the original requested geometry by floating windows, so it’s the responsibility of the app.

There is also the "move" command with which you can move floating windows, see http://i3wm.org/docs/userguide.html#focusingmoving_containers

edit flag offensive delete link more

Comments

Thanks a lot, Michael, for the hint. I did this way: for_window [instance="gsimplecal"] move absolute position 1600 px 920 px

just-22 gravatar imagejust-22 ( 2012-12-24 22:18:45 +0000 )edit
0

answered 2013-01-22 23:35:25 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

you could also try to set a keybinding and force the position upon exec

bindsym $MOD+[?] exec foo -g 150x150+1600+150

EDIT: above seems to only work with urxvt, or other terminal emulator's, I just happen to use urxvt. Positioning another app, like thunar or mousepad is as follows:

for_window [class="Thunar"] floating enable move right 330px,move down 70px
edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-12-24 21:25:23 +0000

Seen: 2,433 times

Last updated: Jan 29 '13