11 lines
239 B
Bash
11 lines
239 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
bspc subscribe pointer_action | while read -a msg ; do
|
||
|
ev="${msg[5]}" # begin | end
|
||
|
nid="${msg[3]}" # begin | end
|
||
|
#echo ${msg[1]},${msg[3]},${msg[4]},${msg[5]}
|
||
|
if [ $ev == "end" ]; then
|
||
|
bspc node $nid -f
|
||
|
fi
|
||
|
done
|