i3-switch
i3 script to switch between windows in history.
This script is inspired by i3-swap-focus.
It provides a configurable history length and supports consecutive switching within the history. Besides, it can skip the closed windows, windows in scratchpad, or windows not in the current workspace.
Installation
pip install i3-switch
Configuration
Add the following lines to your i3 config file:
# Start i3-switch process
exec i3-switch
bindsym $mod+Tab exec pkill -USR1 -F "/tmp/i3-switch.pid"
# Switch in the same workspaces
# bindsym $mod+Tab exec pkill -USR2 -F "/tmp/i3-switch.pid"
To change the options for i3-switch in your i3 config:
exec i3-switch --max-len 1000 --timeout 400
Consecutive Switching
When switching before it times out, the history within the consecutive switch won't be recorded.
For example, at first the records are DCBA,
after switch twice consecutively,
it should become BDCA.
Internally, the process is as follows:
DCBA -> CDCBA -> BCDCBA -> BDCA (cleanup after timeout).
This process is necessary because the signal itself is stateless,
so the state is kept in the history.
Options
| Name | Description | Default |
|---|---|---|
--max-len |
Max length of the window deque | 100 |
--timeout |
Timeout for consecutive switching in milliseconds | 500 |
Metadata
Release files for i3-switch 1.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| i3-switch-1.2.4.tar.gz | 4.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| i3_switch-1.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / i3-switch-1.2.4.tar.gz
| Download URL | i3-switch-1.2.4.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
456c33cb91755fb2cb2ded9018dbf6e7f97f37fcf6c91ad11deb64a9c3769e7f
|
|
BLAKE2b-256 checksum How to use checksums |
86e489f9e01a50e611553ac3c976cda4fa86f16d24e8cb0733c78c160e5a3f69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Release files / i3_switch-1.2.4-py3-none-any.whl
| Download URL | i3_switch-1.2.4-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
079974ebe9c3bd258ae95f64f4859ab53b5e27e7e48c7409bccc8148448d44b2
|
|
BLAKE2b-256 checksum How to use checksums |
846b013a76a5d1ea1c6e1641d3d16b2bd24e4221777b7657cf0c731633ac80df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Security for i3-switch 1.2.4
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.