windowlayouts
Utility for automatically storing & restoring application window layouts for specific screen configurations on the X Window System.
For example, if a user frequently changes their setup between a single laptop screen and two external monitors, this tool remembers & automatically restores all windows to their original positions for each monitor setup without the need for manual rearrangement.
Installation
Run pip install truhanen.windowlayouts to install the script windowlayouts
to be used from the command line.
To install from source, run pip install . in the project root directory.
Requirements
- Python 3.7+
- wmctrl command line tool
Usage
usage: windowlayouts [-h] [--verbose] {store,restore,switch} ...
positional arguments:
{store,restore,switch}
store Store the current window layout for the current screen
layout. Replace a previously stored window layout if
such a window layout exists for the current screen
layout.
restore Restore a window layout if one with the current screen
layout has previously been stored.
switch Run store, then switch to a screen layout configured
in ~/.config/windowlayouts/config.ini, and
then run restore. Screen layout values in the
configuration file must be valid input for xrandr that
apply a specific screen layout. Each "output" of a
screen layout should be defined on a separate line in
the configuration value. See examples/config.ini for
example.
optional arguments:
-h, --help show this help message and exit
--verbose, -v Increase verbosity.
Metadata
Release files for truhanen-windowlayouts 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| truhanen_windowlayouts-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for truhanen_windowlayouts-1.0.6-py3-none-any.whl |
Release files / truhanen_windowlayouts-1.0.6-py3-none-any.whl
| Download URL | truhanen_windowlayouts-1.0.6-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e616fbc810cfdbbcdddc3942d756fa1a7e728152ce6c8b12c7eb191f06d52141
|
|
BLAKE2b-256 checksum How to use checksums |
a2ed3de9afeec8ed883565a0ee67ed1bcc00d736500c65e5f9f34a8a2090d9a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.16
|
Security for truhanen-windowlayouts 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.