Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # MONITOR SCALING HELPER
- # by Chris Webster
- # This is a somewhat hackish, but effective way to
- # get my MacBook Retina display to simulate "HiDPI" scaling mode
- # on while using 1x1 scaling on my external monitor (iMac in display mode).
- # There is slight blurring on MacBook display in dual mode, but it's
- # generally worth it...
- # See how we were called.
- case "$1" in
- # Dual monitors - second monitor in non-HiDPI, main monitor simulating proper scaling with zoom
- dual)
- echo Setting up single monitor scaling.
- gsettings set org.gnome.desktop.interface scaling-factor 1
- gsettings set org.gnome.desktop.interface text-scaling-factor 1
- xrandr --output eDP-1 --scale .5x.5
- ;;
- # Single HiDPI monitor
- single)
- echo Setting up single monitor HiDPI scaling.
- # make sure the hackish zooming is turned off (set to 1x1)
- xrandr --output eDP-1 --scale 1x1
- gsettings set org.gnome.desktop.interface scaling-factor 2
- gsettings set org.gnome.desktop.interface text-scaling-factor 2
- ;;
- *)
- echo $"Usage: $0 {dual|single}"
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement