summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-04 21:21:52 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-04 21:21:52 -0700
commit496ee3bfe35a2f5f8f112c9400a36ff71eb2151d (patch)
treeaf756e9f7b63ad534a4e426d3a143677e1c8e827 /scripts
parent3ba36021bf116796ad83cf66b2d1ff9f24d5d960 (diff)
downloaddotfiles-496ee3bfe35a2f5f8f112c9400a36ff71eb2151d.tar.gz
work around sway 'move container to workspace back_and_forth' bug
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/desktop/fresh-workspace6
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";
}