summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-12-27 14:21:06 -0600
committerTimmy Keller <tjk@tjkeller.xyz>2021-12-27 14:21:06 -0600
commitea8ec2d2776fb7e3ea44c4416fac7e662594f351 (patch)
treefdd1c47ba32c40acdd23bf49299bd3f57d453939 /x11
parentf4b77c42ca78c5265c4754caeef5289e3841f5e9 (diff)
downloadscripts-ea8ec2d2776fb7e3ea44c4416fac7e662594f351.tar.xz
scripts-ea8ec2d2776fb7e3ea44c4416fac7e662594f351.zip
dmenu runapp script and xvsync
Diffstat (limited to 'x11')
-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