Created
June 4, 2021 10:06
-
-
Save SofianeHamlaoui/1db13f796033761db4acb101cc0646ae to your computer and use it in GitHub Desktop.
Sofiane Screen Res
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 | |
| if [[ $(xrandr | grep "eDP" | awk '{print $1;}') == "eDP-1" ]] | |
| then | |
| xrandr --output eDP-1 --scale 1.3x1.3 | |
| elif [[ $(xrandr | grep "eDP" | awk '{print $1;}') == "eDP-1-1" ]] | |
| then | |
| xrandr --newmode "2496x1404_144.00" 767.25 2496 2720 2992 3488 1404 1407 1412 1529 -hsync +vsync | |
| xrandr --addmode eDP-1-1 "2496x1404_144.00" | |
| xrandr --output eDP-1-1 --mode "2496x1404_144.00" | |
| else | |
| echo "Wrong output a weldi, check again" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment