Skip to main content

Automatic manager for i3 tiling

Project description

i3a

i3a is a set of scripts used for automation of i3 and sway window manager layouts.

Automation list

i3a-master-stack

Provides automatic master-stack layout, which is known from e.g. DWM. The following kinds of the layout are possible:

  • master-stack area with DWM-like stack (stack windows are split)
  • master-stack area with i3-like stack (stack windows are actual stack)

To use, run i3a-master-stack with selected options (i3a-master-stack --help for details). One way to run it automatically is via a systemd user service.

  1. Create the following file in ~/.config/systemd/user/i3a-master-stack:
[Unit]
Description=i3a-master-stack

[Service]
ExecStart=%h/.local/bin/i3a-master-stack --stack=dwm --stack-size=35
Restart=on-failure
  1. Add the following entry to your i3 or sway configuration file:
exec "systemctl --user restart i3a-master-stack.service"

i3a-swap

Swap currently focused window between master and stack areas from i3a-master-stack (technically it doesn't require running i3-master-stack).

To use it, add the following binding to your i3 or sway configuration file:

bindsym $mod+f exec i3a-swap

i3a-swallow

Provides automatic "swallowing": when a program runs a child process, the parent is automatically hidden (moved to the scratchpad), which looks like if it was replaced, or "swallowed" by the child window. It is especially useful for graphical programs (video player, document viewer etc.) run from the terminal.

Provides a means of filtering both parent programs which can be swallowed and child programs which can trigger swallowing.

To use it, run i3a-swallow with selected options. One way to run it automatically is via a systemd user service.

  1. Create the following file in ~/.config/systemd/user/i3a-swallow:
[Unit]
Description=i3a-swallow

[Service]
ExecStart=%h/.local/bin/i3a-swallow
Restart=on-failure
  1. Add the following entry to your i3 or sway configuration file:
exec "systemctl --user restart i3a-swallow.service"

i3a-move-to-empty

Moves currently focused container to the first empty workspace. Keep in mind that this script relies on numbering of the workspaces.

To use it, add the following binding to your i3 or sway configuration file:

bindsym $mod+w exec i3a-move-to-empty

i3a-resize-compass

Extension of resize command. Currently focused window will automatically grow or shrink in a direction passed to i3a-resize-compass.

bindsym $mod+Up exec i3a-resize-compass up 2ppt
bindsym $mod+Down exec i3a-resize-compass down 2ppt
bindsym $mod+Right exec i3a-resize-compass right 2ppt
bindsym $mod+Left exec i3a-resize-compass left 2ppt

i3a-scale-cycle

sway-specific

Changes output's scale factor to the next or previous one on a given list. Current scale factor is then printed for each requested output (or all available outputs if none was explicitly set).

-f, --scale-factors is a comma-separated list of factors which i3a-scale will cycle so it must be escaped in configuration file:

bindsym $mod+s exec "i3a-scale -f 1.0,1.5,2.0 -o HDMI-1 -o HDMI-2 --next"

Installation

  • PyPI
  • AUR (Arch Linux - unofficial)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

i3a-2.2.1.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

i3a-2.2.1-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file i3a-2.2.1.tar.gz.

File metadata

  • Download URL: i3a-2.2.1.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.10.6-amd64

File hashes

Hashes for i3a-2.2.1.tar.gz
Algorithm Hash digest
SHA256 abd20cc227932f7278d9eb5f9f6c3a8fcd27511c0c240ee9f0d96f1d00d7129e
MD5 03972aba6d1686c33cc6b35495540bba
BLAKE2b-256 882802055f43cb060ddcf6c149b37fbea2e1d6386b0d115ac9c0e07799f9e9dd

See more details on using hashes here.

File details

Details for the file i3a-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: i3a-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.10.6-amd64

File hashes

Hashes for i3a-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 494a3ccb1770953bdc1fdebf3593e9a54173763e9ad289d5d734f324599e7f52
MD5 ffca273766cfa12ed9f4e91d7f566afe
BLAKE2b-256 2d8c77d1385267eaa304dddfdebee6cb438991cd61205b76cb024799f3c9f07d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page