From a199e3e7bb8786c89771881ce3fb8e1d8b6dca9e Mon Sep 17 00:00:00 2001 From: Donald Burr Date: Thu, 19 Feb 2015 18:25:34 -0800 Subject: [PATCH] add start of window fixer upper script --- acatcher/fix_windows.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 acatcher/fix_windows.sh diff --git a/acatcher/fix_windows.sh b/acatcher/fix_windows.sh new file mode 100755 index 0000000..1b658cd --- /dev/null +++ b/acatcher/fix_windows.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# user configurable stuffs go here + +WINDOW_WIDTH=320 +WINDOW_HEIGHT=240 +CHROME_WIDTH_OFFSET=2 +CHROME_HEIGHT_OFFSET=20 + +# end of user configurable section + +# get screen width and height +WIDTH=`xdpyinfo | grep dimensions | awk '{print $2}' | awk -Fx '{print $1}'` +HEIGHT=`xdpyinfo | grep dimensions | awk '{print $2}' | awk -Fx '{print $2}'` +echo "display is $WIDTH x $HEIGHT"