[PD] size and position of PD window

IOhannes m zmoelnig zmoelnig at iem.at
Wed Apr 14 17:40:18 CEST 2021


On 4/14/21 4:17 PM, Philip Stone via Pd-list wrote:
> This is something that I manually adjust in the Wish code every time I upgrade Pd. It would be very nice to have it be a configurable setting in 
Preferences.


why?¹
and why is there no feature-request on https://bugs.puredata.info?

one possible answer to the second question is, that I (yes me) would 
probably close such a feature-request immediately, on the grounds that 
you can implement this with a trivial gui-plugin:

put a file named "mypdwindowgeometry-plugin.tcl" (the base-name does not 
matter but it *must* end with "-plugin.tcl") with the following content 
into your Pd-searchpath (without the backticks):

```
if {[winfo exists .pdwindow]} {
	wm geometry .pdwindow  =538x300+0+458
}
```

whenever you start Pd, this GUI plugin will move the window to the 
selected place.
no patching of Pd required. works on all OSs (not tested).

you could even reduce the plugin to just the "wm geometry ..." line.

i guess writing this plugin is about the same amount of typing as a 
"configurable setting" (provided this setting is text-based and not just 
"remember my current position").


mgffst
IOhannes

¹ what i would wish for is that the Pd window opened up on the currently 
active monitor, rather than my left-most monitor, where i usually have a 
full-screen editor running that likes to hide my Pd)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20210414/0f02d540/attachment-0001.sig>


More information about the Pd-list mailing list