removed debug statements

This commit is contained in:
tmont 2021-11-01 17:18:41 -07:00
parent a3d2452da3
commit 2e5e27da0a

View File

@ -6,14 +6,12 @@ set -ueo pipefail
displayWidth=$(xdotool getdisplaygeometry | cut -d' ' -f1) displayWidth=$(xdotool getdisplaygeometry | cut -d' ' -f1)
xPos=$(xdotool getactivewindow getwindowgeometry | grep Position: | cut -d: -f2 | cut -d, -f1 | tr -d ' ') xPos=$(xdotool getactivewindow getwindowgeometry | grep Position: | cut -d: -f2 | cut -d, -f1 | tr -d ' ')
echo "current x: ${xPos}"
newXPos= newXPos=
if [[ "${xPos}" -ge "${displayWidth}" ]]; then if [[ "${xPos}" -ge "${displayWidth}" ]]; then
newXPos="-${displayWidth}" newXPos="-${displayWidth}"
else else
newXPos="${displayWidth}" newXPos="${displayWidth}"
fi fi
echo "new x: ${newXPos}"
# i don't know why the y value is offset, but it is what it is # i don't know why the y value is offset, but it is what it is
xdotool getactivewindow windowmove --relative -- "${newXPos}" -50 xdotool getactivewindow windowmove --relative -- "${newXPos}" -50