Giter Site home page Giter Site logo

Comments (6)

sagb avatar sagb commented on July 18, 2024 1

Proper solution would be an option to display _NET_DESKTOP_NAMES/_WIN_WORKSPACE_NAMES.

from alttab.

sagb avatar sagb commented on July 18, 2024

Please show exact options you run attab with, and what do you see in bottom line.

from alttab.

oredaze avatar oredaze commented on July 18, 2024

With default options it has -b 1 if I am not in single-desktop mode, which is true.
At the bottom right corner there is a number, it corresponds to the desktop number the application is on, you know how it works. However if my program is on desktop 1 it shows 0, if it is on desktop 2 it shows 1, etc...

from alttab.

sagb avatar sagb commented on July 18, 2024

The common standard for desktops (workspaces) is Freedesktop set of standards.
According to https://specifications.freedesktop.org/wm-spec/1.3/ar01s03.html

_NET_CURRENT_DESKTOP
The index of the current desktop. This is always an integer between 0 and _NET_NUMBER_OF_DESKTOPS - 1.

If your window manager generally conforms to this standard (alttab -v says "ewmh compatible"), then you can check how your WM assigns numbers to desktops: wmctrl -d

WM may also assign an arbitrary internal label to desktop number 0, making it, say, "1" for user. I doubt that incrementing standard integer value is reasonable. What if WM allows renaming the workspace to arbitrary text label? There is no standard way to obtain such labels.

from alttab.

sagb avatar sagb commented on July 18, 2024

Actually, there is a way to obtain this label. What wmctrl -d says for you?

from alttab.

oredaze avatar oredaze commented on July 18, 2024
0  * DG: 1920x1080  VP: 0,0  WA: 0,0 1920x1080  1
1  - DG: 1920x1080  VP: 0,0  WA: 0,0 1920x1080  2
2  - DG: 1920x1080  VP: 0,0  WA: 0,0 1920x1080  3
3  - DG: 1920x1080  VP: 0,0  WA: 0,0 1920x1080  4
4  - DG: 1920x1080  VP: 0,0  WA: 0,0 1920x1080  5
5  - DG: 1920x1080  VP: 0,0  WA: 0,0 1920x1080  6
6  - DG: 1920x1080  VP: 0,0  WA: 0,0 1920x1080  7
7  - DG: 1920x1080  VP: 0,0  WA: 0,0 1920x1080  8
8  - DG: 1920x1080  VP: 0,0  WA: 0,0 1920x1080  9

This is openbox, and it correctly sets the index to 0. My point is that nobody considers starting with 0 when they work.
We set a hotkey and name to 1(maybe not always name...) for the first desktop (index 0). I guess I can just ignore that and never use it... but it's weird. Like when you login you start there...

from alttab.

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.