command chaining in i3-input?
I want to bind a key to query for input and perform a "complex" action based on that. Specifically, I want to both mark a window with a user-specified name AND send it to the scratchpad.
I tried both of the following options, and both did not work as intended:
bindsym $mod+Shift+minus exec --no-startup-id i3-input -P 'Mark window as:' -F "mark %s"; move to scratchpad
The problem with the above is that it sends the focused window the the scratchpad, and then marks the remaining, newly-focused window with the provided name. For some reason it does not wait for i3-input to return prior to performing the next action in the chain
I also tried:
bindsym $mod+Shift+minus exec --no-startup-id i3-input -P 'Mark window as:' -F "mark %s; move to scratchpad"
Here i3 does not parse the line well, as it is confused by the ; inside the quotes.
Any tips on how to resolve this?