summaryrefslogtreecommitdiffstats
path: root/mmove
authorRaghavendra D Prabhu <[email protected]>2011-03-12 18:54:47 (GMT)
committer Raghavendra D Prabhu <[email protected]>2011-03-12 18:54:47 (GMT)
commit5ec75ea891c9b44cdd2d7a3e0c29b4d08dff2b2a (patch) (side-by-side diff)
treedeabb15393558ab3a1a629fc0782d8b0c3124c48 /mmove
downloadScripts-5ec75ea891c9b44cdd2d7a3e0c29b4d08dff2b2a.zip
Scripts-5ec75ea891c9b44cdd2d7a3e0c29b4d08dff2b2a.tar.gz
Scripts-5ec75ea891c9b44cdd2d7a3e0c29b4d08dff2b2a.tar.bz2
Initial scripts update
Diffstat (limited to 'mmove') (more/less context) (ignore whitespace changes)
-rwxr-xr-xmmove15
1 files changed, 15 insertions, 0 deletions
diff --git a/mmove b/mmove
new file mode 100755
index 0000000..4d37d05
--- a/dev/null
+++ b/mmove
@@ -0,0 +1,15 @@
+#!/bin/zsh
+#set -x
+wid=$(xdotool search --pid $(pidof -s mplayer) 2>/dev/null)
+xord=600
+yord=0
+eyord=$(xwininfo -id $wid | /bin/grep -i "Absolute upper-left Y" | cut -d ":" -f 2| tr -d '[:space:]' )
+if [[ $eyord == "0" ]];then
+ yord=200
+elif [[ $eyord == "200" ]];then
+ yord=506
+elif [[ $eyord == "506" ]];then
+ yord=0
+fi
+xdotool windowmove $wid $xord $yord
+#set +x