ah... Thanks : ) I'll give that a try then. Every time I ran xev in the past it never spitted out what I expected. I'll give it another go then...
I /think/ -name is the name of the xev window itself... but -id could work...
appreciated.
xev -id $(xwininfo -tree -root | awk '/Luakit Browser Framework/ {print $1}') 2> /dev/null | awk '/root/ {print $7} ' | tr -d ')' | cut -d"," -f2 | awk '$0 < 50 {system("/mnt/us/extensions/luakit/usr/bin/toggleKeys close")}' || awk '$0 > 700 {system("/mnt/us/extensions/luakit/usr/bin/toggleKeys open")}' helpful...