From cae0fe3c9818b1a3bb5b75d19dd0d4883fbac425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eirik=20=C3=98verby?= Date: Wed, 5 Feb 2025 23:16:21 +0100 Subject: [PATCH] Make move.sh use --class instead of --name when searching for/selecting window --- move.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/move.sh b/move.sh index 5656ff7..d1e7b35 100644 --- a/move.sh +++ b/move.sh @@ -121,10 +121,10 @@ esac wait=0 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.." 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 else wait=$((wait+2))