Created
July 14, 2016 10:43
-
-
Save iegik/baad31f92edb0ebf88cf93c1ab742463 to your computer and use it in GitHub Desktop.
Pantheon-greeter login screen has incorrect resolution on external monitor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# /usr/local/bin/correct-screen-resolution-pantheon-greeter | |
# http://elementaryos.stackexchange.com/questions/2181/pantheon-greeter-login-screen-has-incorrect-resolution-on-external-monitor | |
primary=eDP1 | |
secondary=HDMI1 | |
secondary_resolution=1920x1080 | |
LG="$(xrandr -q | grep $secondary' connected' | awk '{ print $1 }')" | |
if [ "$LG" = $secondary ]; then | |
xrandr --output $primary --off | |
xrandr --output $secondary --primary --mode $secondary_resolution | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment