Found where i copied it from:
http://www.tukui.org/v2/forums/topic.php?id=41. So credit to Foof.
Yeh pretty similar. Also i suck at understanding LUA so i replaced Tuks panels with LitePanels which are awesome. This caused many problems with the code but mehh :P
Also, do you like the unit frames, the positioning and everything or do you think i could change them?