i3-swap-focus
Requirements
Install
Recommanded way is to use a Python package installer such as uv or pipx
## Using uv
uv tool install git+https://codeberg.org/olivierlm/i3-swap-focus
## Using pipx
pipx install i3_swap_focus
i3/sway config example
exec i3-swap-focus
bindsym $mod+Tab exec pkill -USR1 -F "${XDG_RUNTIME_DIR}/swap_focus.pid"
Features
Ignore windows
To ignore some windows (e.g windows that belong to scratchpad), just mark them with ignore_focus in your config :
# Put a term in scratchpad
exec alacritty --class scratchpad_term
# i3 :
for_window [instance="scratchpad_term"] mark "ignore_focus", move scratchpad
# sway :
for_window [app_id="scratchpad_term"] mark "ignore_focus", move scratchpad
Stay in workspace
This script accepts a --stay-in-workspace flag if you do not wish to focus on a different workspace :
exec i3-swap-focus --stay-in-workspace
Metadata
Release files for i3-swap-focus 0.4.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| i3_swap_focus-0.4.7.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| i3_swap_focus-0.4.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / i3_swap_focus-0.4.7.tar.gz
| Download URL | i3_swap_focus-0.4.7.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
976911e78c6a4263aa138463363fc0c5b05ad823c8e612d696f764bf971eba46
|
|
BLAKE2b-256 checksum How to use checksums |
adb7850c843808f7229ddeaeeabad2597258bc8a6c485f5c9e6ddf6fbf591969
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / i3_swap_focus-0.4.7-py3-none-any.whl
| Download URL | i3_swap_focus-0.4.7-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72a532bc3481b9fafddc37a7e57401a7101a977e24bb1418ce8ca1099e14bbac
|
|
BLAKE2b-256 checksum How to use checksums |
9324936cf2a8c66dce9378ce6a32ec0456c3593998391e84577bde37fb79743e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|