From 6e58844b1b8b169f2f8644d3bfba8ff35b7a6e2d Mon Sep 17 00:00:00 2001 From: yage Date: Fri, 7 Jan 2022 19:57:01 -0700 Subject: [PATCH] got it --- bin/desktop/i3/launch-or-show-application.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/desktop/i3/launch-or-show-application.sh b/bin/desktop/i3/launch-or-show-application.sh index 58f72f3..45b0189 100755 --- a/bin/desktop/i3/launch-or-show-application.sh +++ b/bin/desktop/i3/launch-or-show-application.sh @@ -16,7 +16,7 @@ case $(basename $APPLICATION) in email ) FACTOR=0.8 XFFSET=-200 ;; esac -SCREEN_SIZE=$(\ +WINDOW_SIZE=$(\ xrandr \ | grep 'connected primary' \ | sed 's/.*connected primary \([^x]*\)x\([^+]*\).*/\1 \2/' \ @@ -24,7 +24,7 @@ SCREEN_SIZE=$(\ '{print int($1*f+x)," ",int($2*f+y);}'\ ) -i3-msg "[class=$CLIENT_CLASS] resize set $SCREEN_SIZE" i3-msg "[class=$CLIENT_CLASS] move scratchpad" +i3-msg "[class=$CLIENT_CLASS] resize set $WINDOW_SIZE" i3-msg "[class=$CLIENT_CLASS] scratchpad show" i3-msg "[class=$CLIENT_CLASS] move position center"