Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. #xrandr's name for the external monitor connection
  4. MONITOR=DP-5.8
  5.  
  6.  
  7. if (xrandr | grep "DP-5.8 connected"); then
  8. xrandr --output "$MONITOR" --mode "2560x1600" --primary
  9. else
  10. #xrandr --output LVDS-1 "1920x1080" --primary
  11. xrandr --auto >> log_big_screen
  12. fi
  13.  
  14. sleep 5
  15.  
  16. #optional: switch to vt1 and back, to fix with "blank screen" problem
  17. chvt 1
  18.  
  19. sleep 5
  20. chvt 7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement