« Previous - Version 23/25 (diff) - Next » - Current version
Christoph Kappel, 2011-05-14 00:07


Gravity

subtle uses a configureable grid system for window placement and the window slots inside of this grid are called gravity.

Values

Gravities are percentage values of the used screen and work view-wise for assigned tag. They consist of four values:

  • X for placement in X direction
  • Y for placement in Y direction
  • WIDTH for window width
  • HEIGHT for window height

Each value is a percentage value of the screen width and height, that ensures that the same gravities work on any screen.

Examples

Center

1 gravity :center, [ 25, 25, 50, 50 ]
+---------+
|         |
| +-----+ |
| |     | |
| +-----+ |
|         |
+---------+

Top left

1 gravity :center, [ 0, 0, 50, 50 ]
+----+----+
|    |    |
|    |    |
+----+    |
|         |
|         |
+---------+

Bottom

1 gravity :center, [ 0, 0, 50, 50 ]
+---------+
|         |
|         |
+---------+
|         |
|         |
+---------+