#!/bin/bash var=$(xrandr | grep 'VGA1 connected') if [ -n "$var" ] ; then xrandr --output VGA1 --primary xrandr --output LVDS1 --off else xrandr --primary LVDS1 fi
1:/home/me$ xrandr Screen 0: minimum 320 x 200, current 2400 x 1920, maximum 8192 x 8192 DisplayPort-2 connected (normal left inverted right x axis y axis) 1920x1200 60.0 + 1920x1080 60.0 50.0 59.9 24.0 24.0 1920x1080i 60.1 50.0 60.0 1600x1200 60.0 1280x1024 75.0 60.0 1152x864 75.0 1280x720 60.0 50.0 59.9 1440x576i 50.1 1024x768 75.1 60.0 1440x480i 60.1 60.1 800x600 75.0 60.3 720x576 50.0 720x480 60.0 59.9 640x480 75.0 60.0 59.9 720x400 70.1 DisplayPort-3 connected primary 1200x1920+1200+0 left (normal left inverted right x axis y axis) 519mm x 320mm 1920x1200 60.0*+ 1600x1200 60.0 1280x1024 75.0 60.0 1152x864 75.0 1024x768 75.1 60.0 800x600 75.0 60.3 640x480 75.0 60.0 720x400 70.1 DVI-1 connected 1200x1920+0+0 left (normal left inverted right x axis y axis) 518mm x 324mm 1920x1200 60.0*+ 1920x1080 60.0 1600x1200 60.0 1680x1050 59.9 1280x1024 60.0 1280x960 60.0 1024x768 60.0 800x600 60.3 640x480 60.0 720x400 70.1 DisplayPort-1-0 disconnected DisplayPort-1-1 disconnected
ads
sd
No comments:
Post a Comment