Last active
April 23, 2024 21:56
-
-
Save abreujp/a53f626616ad61e5c9c770e77695707e 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