diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-03-04 21:21:52 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-03-04 21:21:52 -0700 |
commit | 496ee3bfe35a2f5f8f112c9400a36ff71eb2151d (patch) | |
tree | af756e9f7b63ad534a4e426d3a143677e1c8e827 /scripts | |
parent | 3ba36021bf116796ad83cf66b2d1ff9f24d5d960 (diff) | |
download | dotfiles-496ee3bfe35a2f5f8f112c9400a36ff71eb2151d.tar.gz |
work around sway 'move container to workspace back_and_forth' bug
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/desktop/fresh-workspace | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/desktop/fresh-workspace b/scripts/desktop/fresh-workspace index 89a5de48..a34205d3 100755 --- a/scripts/desktop/fresh-workspace +++ b/scripts/desktop/fresh-workspace @@ -26,7 +26,11 @@ if ($next_free_workspace) { # other wanted containers over there, before finally switching # the view with 'workspace back_and_forth' system - "i3-msg move container to workspace $next_free_workspace >/dev/null"; + "i3-msg move container to workspace $next_free_workspace" + # Only the first of the three commands within this call to i3-msg + # should be necessary, but we need the others to work around + # https://github.com/swaywm/sway/issues/6081 + .", workspace $next_free_workspace, workspace back_and_forth >/dev/null"; } else { system "i3-msg workspace $next_free_workspace >/dev/null"; } |