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

11 lines
239 B
Bash
Executable File

#!/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
~~i3历险记~~, i3从入门到放弃, 转战bspwm
Shell 100%