-
-
Save MaherSaif/4a0bfc13bdc5412cd61c7eff610bf886 to your computer and use it in GitHub Desktop.
monitor.sh
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/sh | |
# link UMC (Universal Modeline Calculator): | |
# https://sourceforge.net/projects/umc/files/umc/umc-0.2/umc-0.2.tar.gz/download | |
# compile umc with: "./configure" and "sudo make install" if error install dependencies and repeat. | |
# chmod +x monitor.sh | |
# ./monitor.sh | |
# Alias on .zshrc | |
# alias monitor='~/monitor.sh' | |
# run for monitor LG: umc 2560 1080 70 --rbt | |
# 2560x1080x69.92 @ 78.033kHz | |
# Modeline "2560x1080x69.92" 212.250000 2560 2608 2640 2720 1080 1083 1087 1116 +HSync -VSync | |
xrandr --newmode "2560x1080x69.92" 212.250000 2560 2608 2640 2720 1080 1083 1087 1116 +HSync -VSync | |
xrandr --addmode HDMI-1 "2560x1080x69.92" | |
xrandr --output LVDS-1 --off --output VGA-1 --off --output HDMI-1 --mode "2560x1080x69.92" --pos 0x0 --output DP-1 --off --output HDMI-2 --off --output HDMI-3 --off --output DP-2 --off --output DP-3 --off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment