Search notes:

Shell command: xrandr

xrandr is an intefrace to the RandR extension.

Determining width and height of screen

With xrandr, the width and height of the screen can be determined in a shell script like so
w=$(xrandr | grep current | awk '{tmp=($8 *1); print tmp}')
h=$(xrandr | grep current | awk '{tmp=($10*1); print tmp}')

echo Screen is $w pixels wide and $h pixels high
Github repository shell-commands, path: /X/xrandr/determine-size-of-screen.sh

Setting up two monitors

TODO....
xrandr --output VGA1 --auto --output HDMI1 --auto --right-of VGA1

See also

commands

Index