A set of scripts to make i3 behave like I want it to.
A workspace switcher inspired by how Awesome behaved with a slightly modified
config back when I used it. Each output has its own set of numbered workspaces
(output 1 gets 1 [1], 2 [1], etc. up to 10 [1]). It also implements a
back-and-forth switching mechanism similar to workspace_back_and_forth yes,
but uses separate histories per output.
The script runs in the background and grabs these keys separate from i3.
Beware of conflicting keybindings inside ~/.i3/config (see below). To use it
simply put the following at the bottom of your i3 config (depending on where you
have the script):
exec ~/i3-scripts/workspace_switcher.pl
workspace_switcher.pl uses keys $mod (+ shift) + 0..9. By default $mod
is Super_L, the left Windows key, because that's what I use. Feel free to
change this keybinding inside the script.
By default however, $mod + 0..9 are taken by i3, causing the script to fail
after doing GrabKey, eventually barfing an X11 error message. Make sure to
comment out these keys inside your i3 config. (Comment rather than remove so you
can easily get them back should anything fail unexpectedly.)
The workspace switcher needs at least Perl modules AnyEvent::I3 and
X11::Protocol. I was able to install them using cpan, hopefully available on
your distro.