An i3/Sway utility to switch focus to your last focused window. Allows for behavior similar to Alt+Tab on other desktop environments.
Features:
bindsym
https://user-images.githubusercontent.com/2672503/221384419-3d62413d-8987-4147-82bc-5e87cea8bb90.mp4
i3-back requires i3/Sway and D-Bus (you very likely have it already installed and running). You can verify it's installed with dbus-daemon --version
and if it's running with systemctl status dbus
.
i3-back 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 deb
from GitHub releases
Binary from GitHub releases
In your i3/Sway configuration (~/.config/i3/config
/~/.config/sway/config
):
```
exec --no-startup-id ~/.cargo/bin/i3-back start
bindsym $mod+Tab exec ~/.cargo/bin/i3-back switch ```
Replace ~/.cargo/bin
with wherever the i3-back binary is placed if not installed through Cargo.
The daemon (i3-back start
) has 2 purposes:
i3-back switch
) to send a command to switch to the previously focused window IDWhen the client (i3-back switch
) is called, it calls the daemon through D-Bus to execute the focus switch.