Make move.sh use --class instead of --name when searching for/selecting window
This commit is contained in:
parent
6bb39f2ab9
commit
cae0fe3c98
1 changed files with 2 additions and 2 deletions
4
move.sh
4
move.sh
|
@ -121,10 +121,10 @@ esac
|
||||||
|
|
||||||
wait=0
|
wait=0
|
||||||
while [ $wait -lt 10 ] ; do
|
while [ $wait -lt 10 ] ; do
|
||||||
if [ $(xdotool search --name hot-babe | wc -l) -gt 0 ] ; then
|
if [ $(xdotool search --class hot-babe | wc -l) -gt 0 ] ; then
|
||||||
echo "The Hot Babe is here, relocating.."
|
echo "The Hot Babe is here, relocating.."
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
xdotool search --name hot-babe windowmove %2 $posX $posY windowstate --add BELOW %2
|
xdotool search --class hot-babe windowmove %1 $posX $posY windowstate --add BELOW %1
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
wait=$((wait+2))
|
wait=$((wait+2))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue