Skip to content

Commit

Permalink
Only scale the internal displays. Close #13
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Aug 9, 2019
1 parent d82beb2 commit b371d93
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions data/umpc-display-scaler
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

PRIMARY_RESOLUTION=$(xrandr | grep "connected primary" | cut -d' ' -f4 | cut -d'+' -f1 | sed 's/ //g')
if [ "${PRIMARY_RESOLUTION}" == "1920x1200" ]; then
PRIMARY_DISPLAY=$(xrandr | grep "connected primary" | cut -d' ' -f1 | sed 's/ //g')
xrandr --output ${PRIMARY_DISPLAY} --scale 0.64x0.64
fi
PRIMARY_DISPLAY=$(xrandr | grep "connected primary" | cut -d' ' -f1 | sed 's/ //g' | sed 's/-//g')
if [ "${PRIMARY_DISPLAY}" == "eDP1" ] || [ "${PRIMARY_DISPLAY}" == "DSI1" ]; then
xrandr --output ${PRIMARY_DISPLAY} --scale 0.64x0.64
fi
fi

0 comments on commit b371d93

Please sign in to comment.