wm

wm - Communicate with the window manager about attributes of toplevel windows.
https://www.tcl-lang.org/man/tcl/TkCmd/wm.html holds the standard documentation.

Also, "wm" commonly abbreviates "window manager", a distinct concept.


The supported subcommands of wm are:

Common subcommands

Rare subcommands

Please add notes on how you make use of the commands below in useful, and perhaps unique, ways.


Could someone address monochrome vs multicolor icons and how to use the appropriate wm command to achieve the difference?

See how do I give my application a color icon for some information.


Can someone point me either to an existing page, or at least write something here, about the most cross platform approach to dealing with window geometry? That is to say, the ability to create a window at a specific location, determine whether a user has later moved it, and save off that info so that next time around, the process begins appropriated (the window, at startup, appears where the user last moved it...) RS: wm geometry returns (or sets) geometry from a WxH+X+Y string. You could save that to an rc file before exit, and apply it from the rc file if it exists.


lv 2003Aug29 does Tk's wm command have the ability to report what size of color map a window has - whether it potentially has a color palette of 8 , 16, 24, or 32 (or larger?) and what colors are currently in use in the color map?

MGS [2003/09/15] - You will probably find more answers from winfo, such as winfo depth, winfo colormapfull, winfo cells, winfo visual.