Add script for setting up my external monitor
This commit is contained in:
parent
4fa1d623bd
commit
621ec9a722
1 changed files with 13 additions and 0 deletions
13
external-monitor.sh
Executable file
13
external-monitor.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if xrandr | grep 'HDMI-A-0' | grep connected >/dev/null; then
|
||||||
|
# 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