Last active
August 7, 2019 14:41
-
-
Save crlspe/e313e3461b3f9911d64be4017b01649d to your computer and use it in GitHub Desktop.
Set display to 120hz if DP-0 connected
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/bash | |
if (xrandr | grep "DP-0 connected" > /dev/null) | |
then | |
exec echo "Conected" & | |
exec xrandr --output DP-0 --mode 2560x1440 --rate 120.00 & | |
exec xrandr --output DP-2 --off & | |
exit | |
fi% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment