#!/bin/sh

wmctrl -l | awk '{ print $1 }' | xargs -P"$(nproc)" -L1 wmctrl -ci
exit 0

#!/bin/sh

wmctrl -l | awk '{ print $1 }' | xargs -P0 -L1 wmctrl -ci
exit 0

Use -P0 to leave parallel decision to xargs
i3: Use -P0 to leave parallel decision to xargs
