| Crates.io | i3-focus-last |
| lib.rs | i3-focus-last |
| version | 0.5.4 |
| created_at | 2018-11-23 09:06:17.046477+00 |
| updated_at | 2022-08-09 20:30:07.664619+00 |
| description | Focus last window on i3 |
| homepage | |
| repository | https://github.com/lbonn/i3-focus-last |
| max_upload_size | |
| id | 98255 |
| size | 18,783 |
Another implementation of this classic (and useful) example of i3 ipc use.
Works on reasonable versions of i3 and sway >= 1.2.
Done in rust:
Add this line to your i3 or Sway configuration:
exec_always i3-focus-last server
Then, add a binding to execute i3-focus-last:
bindsym $mod+Tab exec i3-focus-last
i3-focus-last can be used with rofi to display a window switcher menu in which the entries are sorted by focus order.
To launch it, just run i3-focus-last menu when the server is running (or bind it to some key combination).
It can also shows icons corresponding to the window class or app_id. This mapping can be customized by modifying ~/.config/i3-focus-last/icons.json. For example:
{
"Alacritty": "terminal",
"firefox": "firefox",
"Chromium": "chromium"
}
The values in the dictionary should be names of icons in /usr/share/icons/**.