Skip to content

Instantly share code, notes, and snippets.

@crlspe
Last active August 7, 2019 14:41
Show Gist options
  • Save crlspe/e313e3461b3f9911d64be4017b01649d to your computer and use it in GitHub Desktop.
Save crlspe/e313e3461b3f9911d64be4017b01649d to your computer and use it in GitHub Desktop.
Set display to 120hz if DP-0 connected
#!/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