1 # Script by Alan 'qole' Bruce
2 # with help from DaithiF on ubuntuforums.org for
3 # the xprop | awk command to return the active window.
5 # For some reason, you need to call wmctrl twice to get the
6 # keyboard to work, but whatever works, eh?
8 ACTIVEWINID=`xprop -root | awk '/NET_ACTIVE_WINDOW/ { print $5; exit }'`
9 #zenity --display=:0 --info --title="Information" --text="Hopefully #you have keyboard focus now. Clear this dialog." &
10 #while [ "x$TWOWIN" = "x" ] ; do
11 # wait for Zenity dialog to pop up...
12 # export TWOWIN=`wmctrl -l | grep -i Information | awk '{print $1}'`
14 sudo /sbin/qobi-wmhint-fix $ACTIVEWINID
15 sudo /usr/bin/set-focus $ACTIVEWINID
16 #wmctrl -i -r $ACTIVEWINID -b toggle,fullscreen
17 #wmctrl -i -r $ACTIVEWINID -b toggle,fullscreen