Update trayfun.vala

Automated the get for screen dimensions.