|0.3.2||Feb 26, 2023|
|0.3.0||Feb 26, 2023|
|0.2.0||Feb 26, 2023|
|0.1.3||Feb 26, 2023|
#18 in #i3
28 downloads per month
- Can switch between your 2 most recent windows
- Runs a daemon (background process) to listen for focus changes and sets a mark
- Supports i3 and Sway
- Supports floating windows
- Can be binded to any key through i3's
i3-back requires i3/Sway. It is written in Rust. It can be installed through many method:
Cargo (Rust's package manager) package:
cargo install i3-back
Arch Linux from the AUR (i3-back-bin):
yay -S i3-back-bin # Or with paru or other AUR wrappers
Debian/Ubuntu as a
debfrom GitHub releases
Binary from GitHub releases
In your i3/Sway configuration (
exec --no-startup-id ~/.cargo/bin/i3-back bindsym $mod+Tab [con_mark=_back] focus
~/.cargo/bin with wherever the i3-back binary is placed if not installed through Cargo.
Options are passed to
i3-back as flags. Use
-h to see all options.
exec with options:
exec --no-startup-id ~/.cargo/bin/i3-back --debug --mark _last
-h: See help text. Also see
-m <MARK>: Change the default
_backmark name. Make sure to update your switcher bind's
-d: Print extra debugging information
An i3/Sway utility to switch focus to your last focused window. Allows for behavior similar to Alt+Tab on other desktop environments. Usage: i3-back [OPTIONS] Options: -m, --mark <MARK> Change the name of the mark to set [default: _back] -d, --debug Print extra debugging information -h, --help Print help -V, --version Print version
How it works
The daemon (
i3-back) listen for i3 window events (through i3's socket, from the
I3SOCK environment variable).
When a window event is received, i3-back records the previously focused window ID.
When the previous focus has changed, it sets the
_back mark (or whichever is configured through the
--mark flag) to the last focused window.
When the switch bind is called (through i3's
bindsym), it focuses the mark set by the daemon.