This file contains hidden or 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 | |
# First we need to get the modeline string for xrandr | |
# Luckily, the tool `gtf` will help you calculate it. | |
# All you have to do is to pass the resolution & the- | |
# refresh-rate as the command parameters: | |
gtf 1920 1080 60 | |
# In this case, the horizontal resolution is 1920px the | |
# vertical resolution is 1080px & refresh-rate is 60Hz. |