removed debug statements
This commit is contained in:
parent
a3d2452da3
commit
2e5e27da0a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user