Skip to content

[Feature Request] Automatic assignment of windows to specific workspaces #241

@henrikjohansen

Description

@henrikjohansen

I would really like to be able to automatically assign new windows to specific workspaces based on the windows WM_CLASS or WM_NAME property.

This would allow users to specify that application A should always open on workspace x, application B on workspace y and so forth without having to handle this manually by moving windows around or switching workspaces before applications are launched.

This feature should be configurable in sxwmrc - perhaps something like this (inspired by cwm's autogroup feature) :

assign workspace_number [windowname,]windowclass

For example to always place Firefox on workspace 9

assign 9 "firefox,Firefox"

This approach would also work for CLI applications using something like:

xterm -class <program_name> -e <program>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions