Skip to content

Question: is it possible to label windows? #152

@kalekundert

Description

@kalekundert

For example, I'd like to have a hotkey that causes a window to take up half the screen. I'd also to detect when new monitors are connected, and then resize any windows that this hotkey was used on such that they take up half of the new screen size. I can use BERRY_WINDOW_STATUS to get the original size of a window, but it would be kinda of hard to work out from that what the new size should be.

I'm hoping that there's a way to attach arbitrary information to BERRY_WINDOW_STATUS, e.g. berryc label '{"position": "half right"}' or something like that. The idea would be to look up the "position" for each window, recalculate the coordinates for that position based on the new screen size, then apply those coordinates to the window. Is there any way to do something like this, either via berry or directly via X? If not, is this a feature you'd be open to adding?

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