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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/sh...', 1758200551, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/shell/commands/X/xrandr(54): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78