Gravity(7x)

πŸ“¦
version 2.2.12 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ NAME ✨

Gravity β€” the AfterStep gravity thing, bestie πŸ’… (it's Gravity(7x) if we're being formal, which we are not)


πŸŽ€ CONFIGURATION OPTIONS πŸŽ€

okay so these are literally all the possible gravity values, and each one tells AfterStep where to shuffle your window when it slaps decorations on it. no skipping any, they all matter:

  • Center β€” when the decorations get added to the client window, the window gets moved so that the center of the new framed window sits in exactly the same spot as the center of the mapped client window before it had decorations. balanced. symmetrical. iconic. πŸ’–
  • East β€” the decorated window gets moved so its right side lines up with the right side of the undecorated client window. right side stays put, fr fr.
  • North β€” the decorated window is moved so its top side is in the same position as the top side of the undecorated client window. top stays, periodt.
  • NorthEast β€” decorated window gets moved so its right-top corner lands in the same spot as the right-top corner of the undecorated client window. corner locked in. πŸ‘‘
  • NorthWest β€” decorated window gets moved so its left-top corner sits in the same position as the left-top corner of the undecorated client window.
  • South β€” decorated window is moved so its bottom side is in the same position as the bottom side of the undecorated client window.
  • SouthEast β€” decorated window gets moved so its right-bottom corner is in the same position as the right-bottom corner of the undecorated client window.
  • SouthWest β€” decorated window gets moved so its left-bottom corner lands in the same position as the left-bottom corner of the undecorated client window.
  • Static β€” when decorations are added to the client window, the frame window gets moved so that the client window stays in the exact position it was mapped at. nothing moves, the client is the main character, everyone else adjusts.
  • West β€” decorated window gets moved so its left side is in the same position as the left side of the undecorated client window.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so when a client window gets mapped onto the screen, the Window Manager draws some frame decorations around it β€” stuff like a Titlebar, resize handles, etc. and the thing is, those decorations take up extra space. so it's nesseccary to specify whether the resulting (bigger) window should get moved on screen in any particular direction, to compensate for the size discrepancy. and the thing that decides all of this? the Gravity hint. that's the whole vibe check right there. ✨

usually Gravity is set by the client itself, based on whatever geometry the user specified. for example, geometry -10+100 will set gravity to NorthEast, while +10+100 will set gravity to NorthWest. but sometimes the gravity setting an app requests is just incorrect 😭 β€” and that's because of a longstanding tradition of everybody misinterpreting what gravity actually means. when that happens, you may want to override the gravity. AfterStep girlies can do that using the database file, and by defining a new Style for the specific application with the Gravity attribute set. for example, it is recommended to set the gravity of the popular image viewver XV to be Static, because it tends to move itself around assuming that it knows everything πŸ’€ (it does not).

below are the list of possible gravity values with explanation of its meaning. ⬇️


that's the whole page bestie, go forth and place your windows with intention 🫢

this was page Gravity(7x) from the AfterStep X11 window manager manual, brought to you by the 3rd Berkeley Distribution, version AfterStep v.2.2.12. mwah, slay, bye πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from