wm-logs/home/config/bspwm/subscribe.sh

11 lines
239 B
Bash
Raw Permalink Normal View History

2023-08-17 14:51:26 +08:00
#!/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