One of the opened window is used as scratchpad and the scratchpad is used as "normal" window
Looks like a nice script but unfortunately it doesn't work on my system.
I configured a key binding in i3 like this: bindsym $mod+Shift+a exec --no-startup-id "$HOME/.local/bin/i3-scratchpad -d200x200 -abr -p0,-32 -wtu cal"
. But when I activate it, the scratchpad and the current are swapped. Cf. screenshots. I tried also from a terminal (both with zsh and bash) and it has the same effect. I must say that I wrote my own script to do something similar: i3-launch-or-toggle, which may influence.