Re: display window geometry (position, size) while resizing or moving

2015-09-29 Thread Hacksign

mouse.screen is auto updated when you move your mouse around the screen.
then use
screen[mouse.screen], which screen is a global table in awesome rc.lua, 
to get the screen object.


On 09/29/2015 04:18 PM, Robert Fleming wrote:


Ah OK thanks for the quick reply!

Could register a function to a signal (awesome 3.4) to get this info 
rendered into the screen as the mouse is moving around?


screen[mouse.screen].geometry   => returned a table with key "x" "y" 
"width" "height"


if c is a client object, then
c:geometry() => returned a table which structure is described above

On 09/29/2015 03:53 PM, Robert Fleming wrote:

Anyone know of a way to display a window's geometry (e.g. 80x24
characters or 400x300 pixels) while the user is resizing/moving
the window?

Here's FVWM doing it:
http://imgur.com/hu6rFrC

twm and Openbox also do it.

Thanks,
Robert






Re: display window geometry (position, size) while resizing or moving

2015-09-29 Thread Robert Fleming
Ah OK thanks for the quick reply!

Could register a function to a signal (awesome 3.4) to get this info
rendered into the screen as the mouse is moving around?
screen[mouse.screen].geometry=> returned a table with key "x" "y"
"width" "height"

if c is a client object, then
c:geometry() => returned a table which structure is described above

On 09/29/2015 03:53 PM, Robert Fleming wrote:

> Anyone know of a way to display a window's geometry (e.g. 80x24 characters
> or 400x300 pixels) while the user is resizing/moving the window?
>
> Here's FVWM doing it:
> http://imgur.com/hu6rFrC
>
> twm and Openbox also do it.
>
> Thanks,
> Robert
>


Re: display window geometry (position, size) while resizing or moving

2015-09-29 Thread Hacksign
screen[mouse.screen].geometry=> returned a table with key "x" "y" 
"width" "height"


if c is a client object, then
c:geometry() => returned a table which structure is described above

On 09/29/2015 03:53 PM, Robert Fleming wrote:
Anyone know of a way to display a window's geometry (e.g. 80x24 
characters or 400x300 pixels) while the user is resizing/moving the 
window?


Here's FVWM doing it:
http://imgur.com/hu6rFrC

twm and Openbox also do it.

Thanks,
Robert



--
To unsubscribe, send mail to [email protected].


display window geometry (position, size) while resizing or moving

2015-09-29 Thread Robert Fleming
Anyone know of a way to display a window's geometry (e.g. 80x24 characters
or 400x300 pixels) while the user is resizing/moving the window?

Here's FVWM doing it:
http://imgur.com/hu6rFrC

twm and Openbox also do it.

Thanks,
Robert