summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlaunch/dmenu_runapp5
-rwxr-xr-xx11/xvsync5
2 files changed, 8 insertions, 2 deletions
diff --git a/launch/dmenu_runapp b/launch/dmenu_runapp
index bf0e148..2de77f4 100755
--- a/launch/dmenu_runapp
+++ b/launch/dmenu_runapp
@@ -1,4 +1,5 @@
#!/bin/sh
apps=/usr/share/applications
-name="$(grep -rh -m1 '^Name=' $apps | cut -d'=' -f2- | sort | uniq | dmenu "$@")"
-$(grep '^Exec=[^%]*' -o -m1 $(grep -rl -m1 "$name" $apps) | cut -d'=' -f2-) &
+name="$(grep -h -m1 '^Name=' $apps/* | cut -d'=' -f2- | sort | uniq | dmenu "$@")"
+#$(grep '^Exec=[^%]*' -o -m1 $(grep -l -m1 "$name" $apps/*) | cut -d'=' -f2-) &
+gtk-launch $(basename `grep -l -m1 "$name" $apps/*` .desktop) &
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