bspwm/border_flash.sh

20 lines
378 B
Bash
Raw Normal View History

2021-05-31 11:35:05 +00:00
#!/bin/bash
2024-05-24 16:33:14 +00:00
# temp disable
exit
2020-10-31 21:59:41 +00:00
_lockfile="$HOME/.cache/border_flash_lock"
if [ -f $_lockfile ] ; then
rm "$_lockfile"
fi
2020-10-31 20:21:01 +00:00
bspc subscribe node_focus | while read -a msg ; do
2020-10-31 21:59:41 +00:00
if ! [ -f $_lockfile ] ; then
touch "$_lockfile" \
&& bspc config focused_border_color '#ff2222' \
&& sleep 1 \
&& bspc config focused_border_color '#222222' \
&& rm "$_lockfile" &
fi
2020-10-31 20:21:01 +00:00
done