5 bspc monitor -a "test-insertion"
6 bspc desktop -f "test-insertion"
12 split_type_a=$(bspc query -T -n @/ | jshon -e splitType -u)
16 split_type_b=$(bspc query -T -n @/2 | jshon -e splitType -u)
18 [ "$split_type_a" = "$split_type_b" ] && fail "Non-vacant node insertion should rotate brother."
20 split_type_a=$(bspc query -T -n @/ | jshon -e splitType -u)
22 bspc rule -a Test:test -o state=floating
25 split_type_b=$(bspc query -T -n @/2 | jshon -e splitType -u)
27 [ "$split_type_a" = "$split_type_b" ] || fail "Vacant node insertion shouldn't rotate brother."
33 for dir in north west south east ; do
36 [ "$dir" = "south" -o "$dir" = "east" ] && child=2
37 [ "$dir" = "north" -o "$dir" = "south" ] && split_type=horizontal
40 [ "$(bspc query -N -n)" = "$(bspc query -N -n @parent/${child})" ] || fail "Wrong child polarity for ${dir} preselection."
41 [ "$(bspc query -T -n @parent | jshon -e splitType -u)" = "$split_type" ] || fail "Wrong split type for ${dir} preselection."
46 bspc desktop "test-insertion" -r