24 lines
442 B
Bash
24 lines
442 B
Bash
|
#!/usr/bin/env sh
|
||
|
|
||
|
jami
|
||
|
|
||
|
iterations=100
|
||
|
|
||
|
i=0
|
||
|
while [ "$i" -lt $iterations ]
|
||
|
do
|
||
|
window_id=$(xdotool search --onlyvisible --class Jami-gnome)
|
||
|
|
||
|
if [ -n "$window_id" ]; then
|
||
|
correct=$(xprop -id "$window_id" | grep "window state: Normal")
|
||
|
fi
|
||
|
|
||
|
[ -n "$correct" ] && break || i=$(( $i + 1 ))
|
||
|
sleep 0.2
|
||
|
done
|
||
|
|
||
|
if [ "$i" -lt $iterations ]; then
|
||
|
sleep 0.6
|
||
|
xdotool key alt+7 && xdotool key ctrl+l && xdotool key Tab
|
||
|
fi
|