bspwm/tests/node/removal
Bastien Dejean 9ae96ebdcd Add IDs to desktops and monitors
There's no constraints on desktop and monitor names, therefore, using a
desktop or monitor name as descriptor is ambiguous.

We put an end to this ambiguity by introducing desktop and monitor IDs.

`bspc query -{M,D}` now yields IDs instead of names.

Fixes #397.
2016-03-16 15:15:27 +01:00

19 lines
300 B
Bash
Executable file

#! /bin/sh
. ./prelude
bspc monitor -a "test-removal"
bspc desktop -f "test-removal"
window add 3
next_focus=$(bspc query -N -n);
bspc node -f @/2/1
bspc node @/2 -k
[ "$(bspc query -N -n)" = "$next_focus" ] || fail "Invalid focus after removal."
window remove
bspc desktop "test-removal" -r