1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#! /bin/sh
. ./prelude
bspc monitor -a "test-transfer-a" "test-transfer-b"
bspc desktop -f "test-transfer-a"
window add 5
next_focus_a=$(bspc query -N -n @/1)
next_focus_b=$(bspc query -N -n @/2/2/1)
bspc node -f $next_focus_b
bspc node @/2 -d "test-transfer-b"
[ "$next_focus_a" = "$(bspc query -N -n @test-transfer-a:)" ] || fail "Invalid focus after transfer from source."
[ "$next_focus_b" = "$(bspc query -N -n @test-transfer-b:)" ] || fail "Invalid focus after transfer in destination."
window remove
bspc desktop -f "test-transfer-b"
window remove 1 2
window remove 2
bspc desktop "test-transfer-a" -r
bspc desktop "test-transfer-b" -r
|