16 lines
356 B
Bash
Executable File
16 lines
356 B
Bash
Executable File
#!/bin/bash
|
|
_lockfile="$HOME/.cache/border_flash_lock"
|
|
if [ -f $_lockfile ] ; then
|
|
rm "$_lockfile"
|
|
fi
|
|
|
|
bspc subscribe node_focus | while read -a msg ; do
|
|
if ! [ -f $_lockfile ] ; then
|
|
touch "$_lockfile" \
|
|
&& bspc config focused_border_color '#ff2222' \
|
|
&& sleep 1 \
|
|
&& bspc config focused_border_color '#222222' \
|
|
&& rm "$_lockfile" &
|
|
fi
|
|
done
|