mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 02:01:42 -05:00

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.
19 lines
300 B
Bash
Executable file
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
|