Update scripts.
This commit is contained in:
parent
9eb0fa22a9
commit
614e626902
12 changed files with 201 additions and 101 deletions
|
@ -1,13 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
if xrandr | grep 'HDMI-A-0' | grep connected >/dev/null; then
|
||||
if xrandr | grep 'HDMI-A-0' | grep disconnected >/dev/null; then
|
||||
# Just enable tearfree
|
||||
xrandr --output eDP --set TearFree on
|
||||
else
|
||||
# Turn off laptop monitor
|
||||
xrandr --output eDP --off
|
||||
# Make sure it's running at 144hz
|
||||
xrandr --output HDMI-A-0 --mode 1920x1080 --rate 144
|
||||
# Enable tear free
|
||||
xrandr --output HDMI-A-0 --set TearFree on
|
||||
else
|
||||
# Just enable tearfree
|
||||
xrandr --output eDP --set TearFree on
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue