15 lines
385 B
Bash
Executable file
15 lines
385 B
Bash
Executable file
#!/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"
|