#!/bin/bash

# Enables lightboost on the Asus VG248QE
# Do not try on monitors that don't support this mode

me=`basename "$0"`
if [ "$#" -ne 1 ]; then
   echo "usage: $me monitor_name (only for lighboost monitors!)"
   exit
fi

xrandr --newmode \
   "1920x1080_120lb" \
   286.7 1920 1968 2000 2080 1080 1083 1088 1149 +HSync -VSync

xrandr --addmode $1 1920x1080_120lb
xrandr --output $1 --mode 1920x1080_120lb