fix surf,thunderbird opening positions
This commit is contained in:
parent
17ce7b0c1f
commit
b919564a48
13
external.sh
13
external.sh
|
@ -10,16 +10,23 @@ role="$(xprop -id "$wid" WM_WINDOW_ROLE | awk -F '"' '{print $2}')"
|
||||||
|
|
||||||
if [ $class = "Thunderbird" ] && [ $role = "messageWindow" ] || [ $role = "Msgcompose" ] ; then
|
if [ $class = "Thunderbird" ] && [ $role = "messageWindow" ] || [ $role = "Msgcompose" ] ; then
|
||||||
echo "state=floating"
|
echo "state=floating"
|
||||||
echo "rectangle=1100x868+250+16"
|
echo "rectangle=1080x868+0+800"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# notify-send "$title" "$1 | $2 | $3 | $4 | $role"
|
if [ $class = "Surf" ] ; then
|
||||||
|
echo "state=floating"
|
||||||
|
echo "rectangle=1080x868+0+700"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
notify-send "$title" "$1 | class: '$2' | instance: '$3' | $4 | role: '$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 )) 300
|
||||||
|
|
||||||
case "$role" in
|
case "$role" in
|
||||||
messageWindow)
|
messageWindow)
|
||||||
|
|
Loading…
Reference in New Issue