add thunderbird rules

This commit is contained in:
= 2021-02-10 16:25:44 +00:00
parent 935f2544c2
commit 6229dd2b1e
1 changed files with 9 additions and 2 deletions

View File

@ -6,15 +6,22 @@ instance=$3
consequences=$4 consequences=$4
title=$(xtitle "$wid") title=$(xtitle "$wid")
role="$(xprop -id "$wid" WM_WINDOW_ROLE | awk -F '"' '{print $2}')"
# notify-send "$title" "$1 | $2 | $3 | $4" if [ $class = "Thunderbird" ] && [ $role = "messageWindow" ] || [ $role = "Msgcompose" ] ; then
echo "state=floating"
echo "rectangle=1100x868+250+16"
exit
fi
# notify-send "$title" "$1 | $2 | $3 | $4 | $role"
#place floating windows #place floating windows
#adapted from https://github.com/baskerville/bspwm/issues/263 #adapted from https://github.com/baskerville/bspwm/issues/263
floats=$(bspc query -N -n .floating -d .focused | wc -l) floats=$(bspc query -N -n .floating -d .focused | wc -l)
xdotool windowmove --sync $wid $(( 50 + 50 * floats )) y xdotool windowmove --sync $wid $(( 50 + 50 * floats )) y
case "$title" in case "$role" in
WM_FORCE_FLOATING) WM_FORCE_FLOATING)
echo "state=floating" echo "state=floating"
;; ;;