Use better/more readable version of the command that starts the
scratchpad-terminal.
i3 seems to pass the exec arguments to /bin/sh so adding another call
was redundant.
Add support for directories with spaces when launching the
scratchpad-terminal.
NOTE: The exact same command but with 6 backlashes instead of 8 seems to
work just fine. That makes no sense in my head. Either I'm missing
something or there is a bug in the escaping of backslashes in i3.
Open the scratchpad-terminal in the same working directory as the
current window. This makes sense since I use it for small and quick
tasks that often need to take place in the same place.
Start the terminal in a separate workspace before switching back so that
the window does not break the workspaces layout or its content.
The script has to wait shortly so that the window is "done" (made
floating, sticky, etc.). This is a very dirty hack and should be
replaced in the future.
Switch from gnome-terminal to st (see fork on github).
Open new terminal by default in the same working-dir as current window.
Modify scratchpad-terminal to work with every terminal.