i3:multi-monitor: Send only one i3-msg command
Moving and then switching in a separate command flickered sometimes.
This commit is contained in:
@@ -50,5 +50,7 @@ if [ -z "$switch" ] && [ -z "$move" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
[ -z "$move" ] || i3-msg move container to workspace "$workspace"
|
||||
[ -z "$switch" ] || i3-msg workspace "$workspace"
|
||||
cmd=
|
||||
[ -z "$move" ] || cmd="move container to workspace $workspace"
|
||||
[ -z "$switch" ] || cmd="$cmd${cmd:+; }workspace $workspace"
|
||||
i3-msg "$cmd"
|
||||
|
||||
Reference in New Issue
Block a user