summaryrefslogtreecommitdiff
path: root/x11/xvsync
diff options
context:
space:
mode:
Diffstat (limited to 'x11/xvsync')
-rwxr-xr-xx11/xvsync5
1 files changed, 5 insertions, 0 deletions
diff --git a/x11/xvsync b/x11/xvsync
new file mode 100755
index 0000000..0d5cd5c
--- /dev/null
+++ b/x11/xvsync
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Since this script runs xrandr to get the connected monitors, it is unnecessary to run xrandr by itself in your xinitrc
+for monitor in `xrandr | sed -n 's/ connected.*//p'`; do
+ xrandr --output $monitor --set TearFree ${1:-on}
+done