Home / It - Notizen / Linux / Resolution of login screen

Resolution of login screen


Display setup script:
  1. #!/bin/sh
  2. # Xsetup - run as root before the login dialog appears
  3. ## Set all not wanted outputs to off
  4. wantedoutput="DVI-0"
  5. cmd="xrandr --output $wantedoutput --primary --auto"
  6. for output in $(xrandr | grep " connected" | cut -d' ' -f 1);
  7. do
  8.     if [[ ! "$output" == "$wantedoutput" ]];
  9.     then
  10.         #cmd="$cmd --output $output --auto --same-as $mainoutput" ## Set all outputs to mirror
  11.         cmd="$cmd --output $output --off"
  12.     fi
  13. done
  14. eval $cmd



 RSS of this page

Written by:   Version:   Edited By:   Modified