Created
February 10, 2019 18:21
-
-
Save francium/d93bcf75884ebeea216cc04cee0e2b9d to your computer and use it in GitHub Desktop.
xrandr scripts to configure fractional scaling and multi-monitors setups (work in X only)
This file contains 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 | |
# Builtin display (1440p) | |
xrandr --output eDP-1 --fb 3840-x2160 --auto --scale 1.5x1.5 | |
------------------------------------------------------------- | |
#!/bin/bash | |
# Dual monitor (dual external 1080p) | |
xrandr --output HDMI-1 --auto --scale 1x1 \ | |
--output HDMI-2 --auto --scale 1x1 --post 1920x0 | |
------------------------------------------------------------- | |
#!/bin/bash | |
# Triple (builtin 1440p + 2x 1080p external) | |
xrandr --output eDP-1 --fb 5760x1080 --mode 1920x1080 --scale 1x1 \ | |
--output DP-1 --scale 1x1 --post 1920x0 \ | |
--output HDMI-2 --post 3840-0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment