There is the function awful.client.moveresize
but this simply increments or decrement current values. How to move and resize a window to absolute values ?
Asked
Active
Viewed 341 times
2

ChiseledAbs
- 2,243
1 Answers
0
To position a window with absolute coordinates you can use awful.placement.top_left
, which places the window in the top left corner ((0,0)), passing the extra argument "offset" that specifies how to move and resize the client with respect to the placement function.
Basically move it to zero and then relative shift.
local c = client.focus --grab focused window
local t = {
["x"] = x, --absolute x coordinate
["y"] = y, --absolute y coordinate
["width"] = 0, -- maintain size
["height"] = 0, -- maintain size
}
awful.placement.top_left(c, {offset=t})

Maldus
- 199
- 1
- 2
- 12
awful.client
but that is not the case for most people. – grochmal Aug 03 '16 at 02:27