X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/04fed8e4657d28df3ca947ea34c2a5d8f9ccc02f..61d7dd11d4a450a64f2817ee4db0ec7fa5880b42:/bin/old/windowmatching?ds=sidebyside diff --git a/bin/old/windowmatching b/bin/old/windowmatching new file mode 100755 index 0000000..b4aac2e --- /dev/null +++ b/bin/old/windowmatching @@ -0,0 +1,22 @@ +#!/bin/bash + +## Gets the window propreties needed for compiz fusion's window regex + +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`; +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`; +xid=`cat windowpref.tmp | grep WM_CLIENT_LEADER | cut -d' ' -f5`; + +echo type=$type; +echo role=$role; +echo name=$name; +echo class=$class; +echo title=$title; +echo xid=$xid; +echo state='modal, sticky, maxvert, maxhorz, shaded, skiptaskbar, skippager, hidden, fullscreen, above, below, or demandsattention'; + +rm windowpref.tmp