Module awful.screen
Functions
| getbycoord (x, y) | Return Xinerama screen number corresponding to the given (pixel) coordinates. |
| focus (screen) | Give the focus to a screen, and move pointer. |
| focus_bydirection (dir, _screen) | Give the focus to a screen, and move pointer, by physical position relative to current screen. |
| focus_relative (i) | Give the focus to a screen, and move pointer, but relative to the current focused screen. |
| padding (_screen, padding) | Get or set the screen padding. |
Tables
| screen | Screen module for awful awful.screen |
Functions
- getbycoord (x, y)
-
Return Xinerama screen number corresponding to the given (pixel) coordinates.
The number returned can be used as an index into the global
`screen` table/object.
Parameters:
x: The x coordinatey: The y coordinate
- focus (screen)
-
Give the focus to a screen, and move pointer. Keeps relative position of the pointer on the screen.
Parameters:
screen: Screen number.
- focus_bydirection (dir, _screen)
-
Give the focus to a screen, and move pointer, by physical position relative to current screen.
Parameters:
dir: The direction, can be either "up", "down", "left" or "right"._screen: Screen number.
- focus_relative (i)
-
Give the focus to a screen, and move pointer, but relative to the current
focused screen.
Parameters:
i: Value to add to the current focused screen index. 1 will focus next screen, -1 would focus the previous one.
- padding (_screen, padding)
-
Get or set the screen padding.
Parameters:
_screen: The screen object to change the padding onpadding: The padding, an table with 'top', 'left', 'right' and/or 'bottom'. Can be nil if you only want to retrieve padding