Getting the size of the window

Got a little “noobish” question here, how do i go about if i want to get the size (in pixels) of the program window?

Another question: How do i resize the program window?

for resizing during runtime i dunno. but i’m sure there are thread on the forum about it. for setting the size on startup: this can be done using the config file (refer to the manual,chapter “the config file”)

Something like:, newy))