Last active
November 25, 2019 09:40
-
-
Save aamnah/9c165be390a53fff1583e146a1ea90bc to your computer and use it in GitHub Desktop.
Monitor profile for multi-monitor setups
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
# ~/.xprofile | |
# Get attached screens and resolution details with `xrandr` | |
# Get resolution modelines with `gtf` or `cvt` | |
# e.g: `gtf 2560 1440 60 -x` or `cvt 2560 1440 60` | |
# You can use `--right-of` and `--left-of` to arrange monitors | |
# e.g: `--right-of DP-1` | |
#-------------------------------------------# | |
# Single Monitor | |
#-------------------------------------------# | |
# FHD - 1920x1080 | |
#xrandr --newmode "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync | |
#xrandr --addmode DP-2 1920x1080_60.00 | |
#xrandr --output DP-2 --mode 1920x1080_60.00 | |
#-------------------------------------------# | |
# DUAL Monitor | |
#-------------------------------------------# | |
# Primmary - Dell 24" | |
# FHD 1920x1080 (60.00Hz) | |
xrandr --output DP-1 1920x1080 | |
# Secondary - Dell 24" | |
# FHD 1920x1080 (60.00Hz) | |
xrandr --output DP-2 1920x1080 --right-of DP-1 | |
#-------------------------------------------# | |
# TRIPLE Monitor | |
#-------------------------------------------# | |
# 2K - 2560x1440 | |
# 1st Monitor | |
# frequency 311.83 (gtf) vs 312.25 (cvt) | |
##### | |
#xrandr --newmode "2560x1440_60.00" 311.83 2560 2744 3024 3488 1440 1441 1444 1490 -HSync +Vsync | |
#xrandr --addmode HDMI-2 2560x1440_60.00 | |
#xrandr --output HDMI-2 --mode 2560x1440_60.00 --left-of DP-1 | |
# FHD - 1920x1080 | |
# 2nd Monitor | |
# frequency 172.80 (gtf) vs 173.00 (cvt) | |
##### | |
#xrandr --newmode "1920x1080_60.00" 173.00 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync | |
#xrandr --addmode DP-1 1920x1080_60.00 | |
#xrandr --output DP-1 --mode 1920x1080_60.00 | |
# FHD - 1920x1080 - Portrait Right | |
# 3rd Monitor | |
##### | |
#xrandr --addmode DP-2 1920x1080_60.00 | |
#xrandr --output DP-2 --mode 1920x1080_60.00 --rotate left --right-of DP-1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment