Qwm always has nine columns, 1-9. Visibility of each column can be toggled. Columns can be used as ``work spaces''. At least one column is always visible, by default columns 1 and 2. Focus is always at a column, and if that column has windows, on a window. The focus follows the mouse. A column can be in stack or single mode. In single mode, only one window is visible at the time, taking up the full height of the column. In stack mode, multiple windows can be visible at a time.
Columns can be moved and resized by clicking or dragging the box in their upper left corner. Windows can be moved and resized by dragging their title bar or clicking their buttons. Windows and columns can also be manipulated by keyboard commands. These commands are single characters preceded by a ^q, control-q. Keys exist for creating new windows, moving windows between columns, resizing windows, and resizing columns and making columns visible or hidden.
New windows are placed in the column with focus. If an adjacent column is at least 1.5 wider than the focused column, the window is placed there instead. In single mode, the new window is made visible and receives focus. In stacked mode, the new window takes the place of the largest window, leaving only the titlebar of the previously largest window visible. If the old window had focus (i.e. was in the focused column), it is ignored when looking for the largest window to replace. This is useful e.g. when the focused window has a list of files that can be opened by plumbing.
In the text below, B1, B2 and B3 stand for buttons 1, 2 and 3.
The column with focus has a brighter background for the column number and mode. For each column, the window number that has or would have focus (if its column had focus) also has a brighter background.
When editing text, the following keys are handled specially:
The following writes to /chan/wmctl are allowed only for file descriptors with no tag associated:
Qwm's screen size can be read from /chan/wmrect.
echo -n 'program wm/sh' >/chan/wmctl & echo -n 'tagfg 000000ff' >/chan/wmctl & echo -n 'tagbg d4ffffff' >/chan/wmctl & echo -n 'tagselbg aaffffff' >/chan/wmctl & echo -n 'boxc 8888ccff' >/chan/wmctl & echo -n 'colbg ffffd4ff' >/chan/wmctl &
Qwm cannot hide the title bar of windows, or influence the buttons displayed. The programs draw those themselves.
Inferno's default title bar does not act on B2 and B3 clicks on the title bar.
Qwm cannot currently run in an existing draw context.
Qwm does not work with wm/keyboard since focus (including keyboard focus) follows the mouse.
QWM(1 ) | Rev: Wed Feb 22 04:14:06 GMT 2023 |