Compare commits

...

2 Commits

Author SHA1 Message Date
Ray Elliott 55ce1d70dc add transparency flash on node focus 2020-10-27 12:45:43 +00:00
Ray Elliott 9348486a8a set rule to force tiled 2020-10-27 12:45:23 +00:00
2 changed files with 11 additions and 11 deletions

View File

@ -6,7 +6,6 @@ instance=$3
consequences=$4 consequences=$4
title=$(xtitle "$wid") title=$(xtitle "$wid")
hostname=$(hostname)
# notify-send "$title" "$1 | $2 | $3 | $4" # notify-send "$title" "$1 | $2 | $3 | $4"
@ -14,17 +13,10 @@ case "$title" in
WM_FORCE_FLOATING) WM_FORCE_FLOATING)
echo "state=floating" echo "state=floating"
;; ;;
WM_FORCE_TILED)
echo "state=tiled"
;;
WM_FORCE_FULLSCREEN) WM_FORCE_FULLSCREEN)
echo "state=fullscreen" echo "state=fullscreen"
;; ;;
esac esac
case "$class" in
firefoxdeveloperedition)
if [ "$instance" = Devtools ] && [ "$hostname" = Pamela ] ; then
eval "$consequences"
echo "monitor=VGA-1-1"
fi
;;
esac

8
focus_flash.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
bspc subscribe node_focus | while read -a msg ; do
_id=${msg[3]}
transset-df --id "$_id" 0.7 \
&& sleep 0.2 \
&& transset-df --id "$_id" 1
done