]>
git.rmz.io Git - dotfiles.git/blob - bin/windowmatching
440047bd6817594f5638172b26e80df9b66c01a5
3 ## Gets the window propreties needed for compiz fusion's window regex
5 xprop
> windowpref.tmp
;
7 type=`cat windowpref.tmp | grep _NET_WM_WINDOW_TYPE | cut -d_ -f10`;
8 role
=`cat windowpref.tmp | grep _WM_WINDOW_ROLE | cut -d\" -f2`;
9 name
=`cat windowpref.tmp | grep WM_CLASS | cut -d\" -f2`;
10 class
=`cat windowpref.tmp | grep WM_CLASS | cut -d\" -f4`;
11 title
=`cat windowpref.tmp | grep "WM_NAME(STRING)" | cut -d\" -f2`;
12 xid
=`cat windowpref.tmp | grep WM_CLIENT_LEADER | cut -d' ' -f5`;
20 echo state
='modal, sticky, maxvert, maxhorz, shaded, skiptaskbar, skippager, hidden, fullscreen, above, below, or demandsattention';