#!/usr/bin/bash while read -r _ _ did wid _; do for d in "$@"; do if [[ $d == "$did" ]]; then bspc node "$wid" -t floating fi done done < <( bspc subscribe node_manage )