]> git.plutz.net Git - serve0/commitdiff
try to move mouse cursor out of sight before playing locally
authorpaul <paul@plutz.net>
Thu, 15 Dec 2016 13:36:05 +0000 (13:36 +0000)
committerpaul <paul@plutz.net>
Thu, 15 Dec 2016 13:36:05 +0000 (13:36 +0000)
svn path=/trunk/; revision=166

actions/watch.sh

index dbaa919b027e1276cf6b8468f159ea4eb23e33bc..b7fad863753d47f28bc40b94c5c9cd81e1a80d4d 100755 (executable)
@@ -73,19 +73,20 @@ case "$_COOKIE[watch]" in
       cp "$metafile" "$playmeta"
     else
       rm "$playmeta"
-      "${_EXEC}"/helpers/genmeta.sh "$playuri" "$playmeta" >/dev/null
+      "${_EXEC}"/helpers/genmeta.sh "$playuri" "$playmeta" >&-
     fi
 
     export DISPLAY=":0"
     uid="$(id |sed -rn '1s;.*uid=([0-9]+)[^0-9].*;\1;p')"
     export XDG_RUNTIME_DIR="/run/user/$uid"  # required for Pulseaudio
-    xrandr || true >/dev/null  # helps enable all screens
+    xrandr || true >&-  # helps enable all screens
+    xvkbd -text '\x+10000\y+10000' || true >&-
 
     if mplayer |grep -q MPlayer2; then
       nohup /usr/bin/mplayer \
         --slave --input=file="$fifofile" \
         --volume="$volume" \
-        "$playuri" 2>"$statusfile" >/dev/null &
+        "$playuri" 2>"$statusfile" >&- &
     else
       nohup /usr/bin/mplayer \
         -slave -input file="$fifofile" \