X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=fremantle%2Feasy-deb-chroot%2Fsrc%2Fhome%2Fuser%2F.kbdactive;fp=fremantle%2Feasy-deb-chroot%2Fsrc%2Fhome%2Fuser%2F.kbdactive;h=37f84faf913a50793b99d8d193c9397a52e2307d;hb=117c374fc3f6283fe314ca557a68050bd33e58e5;hp=0000000000000000000000000000000000000000;hpb=007692c3af951ec7a482b3177cabdc4c6d85a98e;p=easy-deb-chroot diff --git a/fremantle/easy-deb-chroot/src/home/user/.kbdactive b/fremantle/easy-deb-chroot/src/home/user/.kbdactive new file mode 100755 index 0000000..37f84fa --- /dev/null +++ b/fremantle/easy-deb-chroot/src/home/user/.kbdactive @@ -0,0 +1,17 @@ +# Script by Alan 'qole' Bruce +# with help from DaithiF on ubuntuforums.org for +# the xprop | awk command to return the active window. + +# For some reason, you need to call wmctrl twice to get the +# keyboard to work, but whatever works, eh? + +ACTIVEWINID=`xprop -root | awk '/NET_ACTIVE_WINDOW/ { print $5; exit }'` +#zenity --display=:0 --info --title="Information" --text="Hopefully #you have keyboard focus now. Clear this dialog." & +#while [ "x$TWOWIN" = "x" ] ; do + # wait for Zenity dialog to pop up... +# export TWOWIN=`wmctrl -l | grep -i Information | awk '{print $1}'` +#done +sudo /sbin/qobi-wmhint-fix $ACTIVEWINID +sudo /usr/bin/set-focus $ACTIVEWINID +#wmctrl -i -r $ACTIVEWINID -b toggle,fullscreen +#wmctrl -i -r $ACTIVEWINID -b toggle,fullscreen