File: transfer

package info (click to toggle)
bspwm 0.9.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 868 kB
  • sloc: ansic: 11,968; sh: 336; makefile: 85; python: 38
file content (25 lines) | stat: -rwxr-xr-x 651 bytes parent folder | download | duplicates (3)
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