Skip to content

Instantly share code, notes, and snippets.

@metaquanta
Created August 16, 2020 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metaquanta/dc09464338ef6f17b0d1ff5bbdd1a258 to your computer and use it in GitHub Desktop.
Save metaquanta/dc09464338ef6f17b0d1ff5bbdd1a258 to your computer and use it in GitHub Desktop.
External monitor mode switching for HiDPI chromebook
#!/usr/bin/bash
# Favor internal HiDPI
# 0: +*eDP-1 3200/293x1800/165+3840+600 eDP-1
# 1: +DP-2 3840/546x2400/352+0+0 DP-2
#xrandr \
# --fb 7040x2400 \
# --output eDP-1 --mode 3200x1800 --pos 3840x600 \
# --output DP-2 --scale 2x2 --mode 1920x1200 --pos 0x0
# Favor external 1080 for crisp bitmap fonts their
# 0: +*eDP-1 1600/293x900/165+1920+300 eDP-1
# 1: +DP-2 1920/546x1200/352+0+0 DP-2
xrandr \
--fb 3520x1200 \
--output eDP-1 --scale 0.5x0.5 --mode 3200x1800 --pos 1920x300 \
--output DP-2 --scale 1x1 --mode 1920x1200 --pos 0x0
#!/usr/bin/bash
# 0: +*eDP-1 3200/293x1800/165+0+0 eDP-1
xrandr \
--fb 3200x1800 \
--output eDP-1 --scale 1x1 --mode 3200x1800 --pos 0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment