]> git.rmz.io Git - dotfiles.git/blobdiff - bin/old/windowmatching
cleaning up bin
[dotfiles.git] / bin / old / windowmatching
index b4aac2e525cbd84b5fb8089a13003819e9bfcda0..440047bd6817594f5638172b26e80df9b66c01a5 100755 (executable)
@@ -5,10 +5,10 @@
 xprop > windowpref.tmp;
 
 type=`cat windowpref.tmp | grep _NET_WM_WINDOW_TYPE | cut -d_ -f10`;
 xprop > windowpref.tmp;
 
 type=`cat windowpref.tmp | grep _NET_WM_WINDOW_TYPE | cut -d_ -f10`;
-role=`cat windowpref.tmp | grep WM_WINDOW_ROLE | cut -d\" -f2`;
+role=`cat windowpref.tmp | grep _WM_WINDOW_ROLE | cut -d\" -f2`;
 name=`cat windowpref.tmp | grep WM_CLASS | cut -d\" -f2`;
 class=`cat windowpref.tmp | grep WM_CLASS | cut -d\" -f4`;
 name=`cat windowpref.tmp | grep WM_CLASS | cut -d\" -f2`;
 class=`cat windowpref.tmp | grep WM_CLASS | cut -d\" -f4`;
-title=`cat windowpref.tmp | grep ^WM_NAME | cut -d\" -f2`;
+title=`cat windowpref.tmp | grep "WM_NAME(STRING)" | cut -d\" -f2`;
 xid=`cat windowpref.tmp | grep WM_CLIENT_LEADER | cut -d' ' -f5`;
 
 echo type=$type;
 xid=`cat windowpref.tmp | grep WM_CLIENT_LEADER | cut -d' ' -f5`;
 
 echo type=$type;
@@ -19,4 +19,4 @@ echo title=$title;
 echo xid=$xid;
 echo state='modal, sticky, maxvert, maxhorz, shaded, skiptaskbar, skippager, hidden, fullscreen, above, below, or demandsattention';
 
 echo xid=$xid;
 echo state='modal, sticky, maxvert, maxhorz, shaded, skiptaskbar, skippager, hidden, fullscreen, above, below, or demandsattention';
 
-rm windowpref.tmp
+rm windowpref.tmp;