Skip to content

screen layout does not fit to intended configuration #17

@nnako

Description

@nnako

Hi,

when starting nnako.pyw from the examples folder, I can cycle through the existing "themes" using <WIN> + <CTRL> + <SPACE>. The desired main theme for my process would be static_bigscreen_8.

In nnako.pyw an application index list has been defined as follows. There would be 8 applications to be placed on the screen:

        # list of application windows to be managed
        WmRule(exe="cmd.exe", title="nvim", static_window_index=0),
        WmRule(exe="cmd.exe", static_window_index=1),
        WmRule(exe="notepad++.exe", static_window_index=2),
        WmRule(
            exe="freeplane.exe",
            title="freeplane",
            static_window_index=3,
        ),
        WmRule(exe="chrome.exe", static_window_index=4),
        WmRule(exe="ms-teams.exe", static_window_index=5),
        WmRule(exe="yEd.exe", static_window_index=6),
        WmRule(exe="EXCEL.EXE", static_window_index=7),

On activation of that static_bigscreen_8 theme, the applications are to be expected to show like this (see static_bigscreen_8 function within src/jigsawwm/tiler/layouts.py). I adjusted the displayed index values to match the static_window_index values within the example:

    +----------+----------+----------+----------+
    |          |          |          |          |
    |          |          |          |          |
    |     5    |     6    |     7    |          |
    |          |          |          |          |
    |          |          |          |          |
    +----------+--+-----+-+----------+          |
    |             |     |            |          |
    |             |     |            |          |
    |             |     |            |          |
    |             |     |            |     3    |
    |             |  2  |      0     |          |
    |     4       |     |            |          |
    |             |     |            |          |
    |             |     |            |          |
    |             +-----+------------|          |
    |             |                  |          |
    |             |         1        |          |
    +-------------+------------------+----------+

But when activating that theme, the sequence does not seem to be correct (while the single window sizes seem correct).

    +----------+----------+----------+----------+
    |          |          |          |          |
    |          |          |          |          |
    |     3    |     1    |     0    |          |
    |          |          |          |          |
    |          |          |          |          |
    +----------+--+-----+-+----------+          |
    |             |     |            |          |
    |             |     |            |          |
    |             |     |            |          |
    |             |     |            |     6    |
    |             |  5  |      2     |          |
    |     7       |     |            |          |
    |             |     |            |          |
    |             |     |            |          |
    |             +-----+------------|          |
    |             |                  |          |
    |             |         4        |          |
    +-------------+------------------+----------+

Somehow, the order got messed up or I haven't understood the concept behind the static_window_index parameter within the WmRule() functions and the layouting sequence defined within layouts.py.

Any hints?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions