]> git.sur5r.net Git - i3/i3.github.io/commit
Fix swapping workspaces script colon issue 56/head
authortgaz <44317335+tgaz@users.noreply.github.com>
Sat, 20 Oct 2018 11:39:56 +0000 (12:39 +0100)
committerOrestis Floros <orestisf1993@gmail.com>
Mon, 22 Oct 2018 19:19:56 +0000 (22:19 +0300)
commitfdef3b8c2be922a6f53614888a37e42328d5194d
treef9e99727f29670d425d760ea1b298701671946a9
parent1faabbc6275204e7b5e13c733053cbb280926cf0
Fix swapping workspaces script colon issue

From
https://www.reddit.com/r/i3wm/comments/9o218m/found_a_bug_in_swapping_workspaces/e7rtorl/

Using `read -a` means a workspace name with a colon breaks (because
colon is used as separator in `jq`). A cleaner way is to use `read` into
separate variables, which will write the entire tail in the last
variable. Also simplifies the if-statement with a `grep` invocation.
docs/user-contributed/swapping-workspaces.html