Git Product home page Git Product logo

Comments (1)

lars-berger avatar lars-berger commented on May 18, 2024 1

Unfortunately I haven't looked too much into the APIs for working with virtual desktops and there's currently some weird behavior when using them. The topic's come up in a discussion before here.

Your use case is definitely valid though and I agree that having a separate set of workspaces on each virtual desktop would be the ideal. However, it's a pretty tough problem to solve. For example, the WM listens for window events like close, minimize, focus, etc., and these aren't isolated to a particular virtual desktop. There'd have to be some way to know which virtual desktop a window belongs to and handle its events accordingly.

If you truly want to approach this problem, one approach would be to change how the ContainerTree (see ContainerService) is structured. Currently, there's a root container with monitors as children, then workspaces, then split containers & windows. To account for virtual desktops, you'd have to a create new container type under the root container for representing a desktop (meaning each desktop has a different set of monitors, workspaces, windows, etc.). Somehow on creation/deletion of a virtual desktop, it'd create/delete the corresponding desktop container (there's an undocumented way to hook into this described here).

Also, do note that you can have more than 9 workspaces - just define more in the user config and assign a keyboard shortcut to switch to that workspace. It does admittedly get pretty awkward defining keyboard shortcuts with that many workspaces though.

from glazewm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.