Manipulating window look & behaviour with 'hey' | Haiku Project

Look here too:

https://www.haiku-os.org/documents/dev/using_scripting_in_haiku/