Skip to content

Instantly share code, notes, and snippets.

@kn100
Created October 14, 2019 13:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kn100/7193667d393fcf34d4d5c6c359a695af to your computer and use it in GitHub Desktop.
Save kn100/7193667d393fcf34d4d5c6c359a695af to your computer and use it in GitHub Desktop.
A script that forces your internal Dell XPS 13 4k display to run at 1600x900, so it runs at a similar DPI to your 2k monitor, thereby solving scaling issues.
#!/bin/sh
sleep 1
xrandr --newmode "1600x900" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
xrandr --addmode eDP-1 1600x900
xrandr --output DP-1 --auto --pos 0x0
xrandr --output eDP-1 --primary --mode 1600x900 --pos 2560x540
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment