From 2e5e27da0a5a20c4066304984b0867e12395ede6 Mon Sep 17 00:00:00 2001 From: tmont Date: Mon, 1 Nov 2021 17:18:41 -0700 Subject: [PATCH] removed debug statements --- scripts/move-window-to-other-display.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/move-window-to-other-display.sh b/scripts/move-window-to-other-display.sh index d93a960..15da099 100755 --- a/scripts/move-window-to-other-display.sh +++ b/scripts/move-window-to-other-display.sh @@ -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