improve border flash script
This commit is contained in:
parent
11907764bd
commit
8fab0c3960
|
@ -1,7 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
_lockfile="$HOME/.cache/border_flash_lock"
|
||||||
|
if [ -f $_lockfile ] ; then
|
||||||
|
rm "$_lockfile"
|
||||||
|
fi
|
||||||
|
|
||||||
bspc subscribe node_focus | while read -a msg ; do
|
bspc subscribe node_focus | while read -a msg ; do
|
||||||
bspc config focused_border_color '#ff2222' \
|
if ! [ -f $_lockfile ] ; then
|
||||||
&& sleep 0.2 \
|
touch "$_lockfile" \
|
||||||
&& bspc config focused_border_color '#222222'
|
&& bspc config focused_border_color '#ff2222' \
|
||||||
|
&& sleep 1 \
|
||||||
|
&& bspc config focused_border_color '#222222' \
|
||||||
|
&& rm "$_lockfile" &
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue