Skip to main content

i3-balance-workspace

GitHub tag (latest SemVer) PyPI AUR version

Balance windows and workspaces in i3wm. Functionality is similar to the Emacs command M-x balance-windows.

Installation

Following are available options to install i3-balance-workspace:

  1. Install from PyPi (Python Package Index) using pip:

    $ pip install i3-balance-workspace
    
  2. For Arch-Linux users, install i3-balance-workspace via the AUR.

  3. To install locally, ensure poetry and pip are installed on your system. Then execute:

    $ make install
    

Usage

usage: i3_balance_workspace [-h] [--scope {workspace,focus}] [--timeout <int>]

options:
  --scope     {workspace,focus}
              scope of resizing containers (default: workspace)
  --timeout   <int>
              timeout in seconds for resizing (default: 1)
  -h, --help  <flag>
              show this help message and exit

In order to balance all windows in the current workspace, simply execute:

$ i3_balance_workspace

Alternatively, it is possible to only balance the windows that are in focus. For this, execute the following:

$ i3_balance_workspace --scope focus

In order to get the full benefit of this routine, it is recommended to initialize i3 persistent keybindings. Below are example keybindings which can be appended to your i3 config file.

bindsym $mod+b exec "i3_balance_workspace --scope focus"
bindsym $mod+Shift+b exec "i3_balance_workspace"

Examples

i3-balance-workspace has been tested and shows good performance on both simple and complex workspace layouts. Take a look at some examples:

Scope: Workspace

Scope: Focused windows

Bugs

In case of any bugs, feel free to open a GitHub issue.

Developments

Further developments to this repository are summarized in our development log.

Release files for i3-balance-workspace 1.8.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for i3-balance-workspace 1.8.6
File Size Uploaded
i3-balance-workspace-1.8.6.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for i3-balance-workspace 1.8.6
File Interpreter ABI Platform
i3_balance_workspace-1.8.6-py3-none-any.whl Python 3 none any Details

Total release size: 20.7 kB

Release files / i3-balance-workspace-1.8.6.tar.gz

Download URL i3-balance-workspace-1.8.6.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cc9767fd0eabeb415081f7a1b507de0e498dd11cf765aaa0361896be3c90172d
BLAKE2b-256 checksum
How to use checksums
40b6099f41be02d79d795dbe17e815d9a1b38c48e40ae93fa173c0b50caa17e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Linux/5.15.22-1-lts

Release files / i3_balance_workspace-1.8.6-py3-none-any.whl

Download URL i3_balance_workspace-1.8.6-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de6bcd75b01dbf3657c379b127f64ef537d74fb335ff1473c908cce22c6929dd
BLAKE2b-256 checksum
How to use checksums
3d9cbd4469a8302251955ec8d3e96bcee7c796e2b37618725caf4d856a5446ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Linux/5.15.22-1-lts

Release history Release notifications | RSS feed

This release

1.8.6 This release

2 release files

1.8.5

2 release files

1.8.4

2 release files

1.8.3

2 release files

1.8.2

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.3

2 release files

1.6.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page