Quote:
Originally Posted by ondoho
maybe it's possible to query dwm itself for the desired data
|
I have no clue how would I do that, I can't dig up the sources of dwm, I'm not even C literate to read past simplest hello world.
Quote:
Originally Posted by ondoho
does dwm 6.1 update the root window's properties at all? if so, how?
|
I have no clue about it. All I could do was to:
Code:
1. Hit Alt-1 to go to first tag (I still treat them as worspaces)
2. Do xprop -root > file1
3. Hit Alt-2 to go to second tag
4. Do xprop -root > file2
5. Diff file1 and file2: the only difference was in the _NET_ACTIVE_WINDOW (different window ids, nothing related to tags)
Quote:
Originally Posted by ondoho
what exactly do you want to achieve?
|
In the example above, for KEY in [1..9], after I hit Alt-KEY (I never switch tags/workspaces with the mouse, that's why I thought about keylogging), I want to run a script and get the numeric value of KEY so I can use it in a custom status bar.
I could do it with wmctrl for the older, patched dwm version, but like I said, rather prefer to use some ugly third party hack than step aside from vanilla dwm this time.
Quote:
Originally Posted by ondoho
fwiw, i don't think keylogging is the best approach here.
|
I never claimed it's the best approach. I even admit that the idea looks like a very ugly hack, but at least it could give me what I want in a reasonably painless way, assuming I can find some trivial keylogging software that I could set up to catch just Alt-[1-9] keypresses so it logs it to a file.
Quote:
Originally Posted by ondoho
i also don't see any reason not to use this patch (it can be checked against the current version; maybe it doesn't even require any modification at all).
|
Main reason is that I want to stick to vanilla dwm, I don't want to resort to patches since I only need this very little thing that dwm doesn't seem to be able to do by default to make me happy. And as I mentioned above, I don't have the skills to verify the patch. Even if it would apply cleanly to 6.1 as source, I don't want to expose myself to the risk of hitting functional troubles later during usage of blindly modified software. Not to mention that if it would be a legit patch for 6.1, they could bother to update it in a few years since it was released for the older version.