Crate layaway

Source
Expand description

Creates and converts between

  • relative::Layout, which is a logical description of how screens should be ordered, and
  • absolute::Layout, which is a physical description of at which pixel position and size each screen is

See parse for a description of the format which one can str::parse into relative::Layout

Note: Conversion via relative::Layout::to_absolute is not pure, but dependent on the currently running WM to get screen resolutions and the works.

Currently only support for Sway is implemented, however, feel feel free to take a look inside comms and open an issue or send a PR if you’d like to add support for another WM!

Modules§

absolute
comms
Communication with the window manager (WM) to learn about available screens and apply the calculated ones.
config
convert
Concretizes relative::Layout into absolute::Layout
geometry
info
Information of which the task of collection is just… tedious chores.
parse
relative

Structs§

Args
Calculates the physical screen layout given a short relative layout description.

Functions§

desc_from_config
run

Type Aliases§

Map
OSZAR »