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)
xPos=$(xdotool getactivewindow getwindowgeometry | grep Position: | cut -d: -f2 | cut -d, -f1 | tr -d ' ')
echo "current x: ${xPos}"
newXPos=
if [[ "${xPos}" -ge "${displayWidth}" ]]; then
newXPos="-${displayWidth}"
else
newXPos="${displayWidth}"
fi
echo "new x: ${newXPos}"
# i don't know why the y value is offset, but it is what it is
xdotool getactivewindow windowmove --relative -- "${newXPos}" -50