i3 script to switch between windows in history
Project description
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 ignore windows in scratchpad. Besides, it can skip the closed windows 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 "${XDG_RUNTIME_DIR}/i3-switch.pid"
# Switch in the same workspaces
# bindsym $mod+Tab exec pkill -USR2 -F "${XDG_RUNTIME_DIR}/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
.
Options
Name | Description | Default |
---|---|---|
--max-len |
Max length of the window deque | 100 |
--timeout |
Timeout for consecutive switching in milliseconds | 500 |
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
i3-switch-1.2.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for i3_switch-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e44baffa67b65394cc0faa466348dffde51d12adadcd5d41ad385684cca59b |
|
MD5 | 15beb37de2fc25ff9fa84a9c6258ffcc |
|
BLAKE2b-256 | f9aa4b3bb1f6b1bc096497dc91c0d962c19d4b2bb1f3d65cbc22b2dcafbed9ec |