Comments (6)
Proper solution would be an option to display _NET_DESKTOP_NAMES/_WIN_WORKSPACE_NAMES.
from alttab.
Please show exact options you run attab with, and what do you see in bottom line.
from alttab.
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.
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.
Actually, there is a way to obtain this label. What wmctrl -d
says for you?
from alttab.
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)
- Some windows forever lost if they have _NET_WM_STATE_SKIP_TASKBAR property HOT 12
- MacOS Ventura Stage Manager Windows Appear Tilted HOT 1
- X11 HOT 3
- Many useless windows appear HOT 1
- DWM autostart HOT 4
- Not raising windows? (Qtile) HOT 7
- Unclear -d option usage HOT 8
- Just show whole tab while user is picking which tab to choose HOT 1
- Enhancement: Dynamically select list of windows HOT 8
- `_NET_WM_STATE_SKIP_TASKBAR` atom not detected if `_NET_WM_STATE` contains more than one atoms HOT 3
- Enhancement: Immediately focus window before alttab exits HOT 3
- alttab man page on OpenBSD should go to other dir HOT 1
- i3wm cannot cancel select HOT 2
- big bug, the -b argument cannot right to i3wm workspace number HOT 3
- and when i want to switch workspace on i3wm, than it cannot show software on the current workspace HOT 5
- how can cancel switch item, the issus ,is closed, it not fixed HOT 1
- some font it not show HOT 3
- some software cannot show icon with using appimage format file HOT 12
- transparency? how? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alttab.