Replies: 24 comments 11 replies
-
Alttab always uses a single, fixed theme, either defined with the |
Beta Was this translation helpful? Give feedback.
-
Well no because it doesn't touch on why it won't use larger icons than 64x64 and why it's ignoring some icons in the set theme. Just to be clear this is my launch params/args What I'd like is (-i 256x256 -t 256x300|-i 128x128 -t 128x140) but all the icons are blurry due to scaling rather than using the 256x256 | 128x128 versions of the icons. The issue of the ignored icon is stranger as I replaced the hicolor icons with the ones from my theme still it pulled the "original" icon after restarting from somewhere else. Xprop says the window has no set icon so rather than using the WM_CLASS in the set theme like the man page talks about it seems to do something else. Given all the hicolors are scalable svg's kinda says why this icon is the only one that scales over 64x64 but my icon set also has scalable so again why does alttab give up around 64x64 and never look for the matching size or switch to the scalable? |
Beta Was this translation helpful? Give feedback.
-
Alttab uses only PNG and XPM icons, not SVG. Does this explain everything?
where |
Beta Was this translation helpful? Give feedback.
-
In the icon theme I have set 16 to 512 are png, there are xpm for applications (because my WM is as old as I am heh) and svg under "scalable." When running with -vv added it doesn't show/tell what icons are being used (or from where). Just an icon id and size along with the win title not the class.
I removed my xpm and tested and then rebuilt them and tested again with the same results. It grabs a few at the correct 128x128 but the rest it keeps limiting 64x64. |
Beta Was this translation helpful? Give feedback.
-
At the very start of
|
Beta Was this translation helpful? Give feedback.
-
There is but it's listing things I don't have open or don't use and all pointing to /usr/share/pixmaps/
Above that it has
|
Beta Was this translation helpful? Give feedback.
-
On your system, alttab uses only pixmaps + icons from X window properties. Let's try to figure out why it doesn't use images from freedesktop directories, such as the m0dw3rks theme. Please show the full path to any of the icons in this theme that you expect to be loaded, along with the output of |
Beta Was this translation helpful? Give feedback.
-
Well it IS using my set theme icons but the wrong sizes. So all the stuff listed above doesn't make sense. Like I said, it's listing stuff not used/not running then showing it's using pixmap fles for them but none of that stuff is relevant. So if I'm on an XScreen/Workspace with Waterfox running and hit alttab it shows $HOME/.local/share/icons/m0dw3rks/apps/64/waterfox.png even if I have it set with -i to use /home/shed/.local/share/icons/m0dw3rks/apps/128/waterfox.png and thus it's blurry and terrible looking. |
Beta Was this translation helpful? Give feedback.
-
Alttab doesn't load icons from any of these files:
because it only searches for icons in Instead, to quickly fix things:
|
Beta Was this translation helpful? Give feedback.
-
The links do the trick in so far as alttab see things differently with the -vv output but it's still hit and miss on quality. Some icons look right, others still look terrible, blurry and scaled up. Looking at the output it is pulling the 128x128 but if I open the file in feh/sxiv it looks good, in alttab, blurry mess same as before. I see some icons as well have a black background added where the alpha should be. Other icons alpha is rendered OK but some not. Anyhow thanks for looking into this. I'll just call it as 64x64 is the best that can be done. I'll have to restructure the icon builds too. |
Beta Was this translation helpful? Give feedback.
-
Does |
Beta Was this translation helpful? Give feedback.
-
With -s 3 most icons don't show at all and some of what do show have their alpha channel turned black. The ones that showed looked "crisp." I tested all -s options again and they all do some combination of small icons upscaled (blurry), some icons correct (crisp), some icons alpha channels turned black, some icons don't display. Comically if I "break" my icons directory structure with the Open Desktop Standard the black alpha goes away and it still pulls the same icon. I tried changing the icon theme to something else and restarting alttab...it's still somehow using my normal icon theme. This feels more like ghosting hunting than debugging heh. |
Beta Was this translation helpful? Give feedback.
-
I would recommend continuing to try Alttab is very straightforward; it doesn't involve any obscure processes. For instance, it uses ONLY the theme specified with the With Ensure the PNG files are indeed PNG format. |
Beta Was this translation helpful? Give feedback.
-
Heh they are png, this is my icon set so I know how it's built/rendered. As for going -s 3 it's not really an option. Most icons don't show at all, those that do have the blacked out alpha, it's a mess, despite the "app" lines saying it's using the right files. At least with -s 2 the icons show, the alpha is correct and as long as I don't go larger than 64x64 they look as they should. |
Beta Was this translation helpful? Give feedback.
-
From the icons displayed in the "app" lines, could you attach to the chat one that is not shown and another one with wrong alpha? Also, |
Beta Was this translation helpful? Give feedback.
-
Once again, if you encounter a situation where the path to a valid icon is displayed in the 'app ...' line, yet alttab incorrectly renders this icon, then please attach the icon here to this conversation by using the 'attach' button. |
Beta Was this translation helpful? Give feedback.
-
I just checked your 128x icons in alttab, and they are displayed nicely, including the alpha channel: I don't quite understand what do you mean by "inverted" directory structure; only one directory structure is recognized by alttab, and it's a standard, so I recommend to stick to it (though you may have reasons for another scheme, I don't know). |
Beta Was this translation helpful? Give feedback.
-
I will add one last thing. If you really want to figure this out note something I said way back about when you actually trigger alttab. Lines like "8: 5000099 (lvl 0, icon 37749016 (48x48)): New Mail - Pale Moon" The "icon" is denoted as an ID which is useless (at least to me). If you want to see the discrepancies between the APP lines and the actual triggers you should have alttab output the path and file it's actually loading to display. With the Tor Browser example the sizes line up so "on paper" it looks like it's pulling the right icon. You don't see the issue unless you visually see the wrong icon when you trigger. You could see in the logs it says one thing on the App line then grabs something totally different to show the user. That won't help (in theory) why it magically starts to butcher alpha channels for me when the directory structure is inverted but there is definitely some little gotcha happening here and lots of questions. |
Beta Was this translation helpful? Give feedback.
-
To clarify where the icons came from in these lines,
I've added some debug in master branch. Use: |
Beta Was this translation helpful? Give feedback.
-
Let's please refrain from inappropriate analogies. Alttab retrieves icons from various locations, which might appear unexpected to a user who hasn't understood the working algorithm and options. From your output, it's evident that the icons come from X window properties, not from files. Now, launch alttab with the |
Beta Was this translation helpful? Give feedback.
-
What are shown in these lines?
|
Beta Was this translation helpful? Give feedback.
-
Okay, no icons found. |
Beta Was this translation helpful? Give feedback.
-
This means that for Pale Moon, alttab searches only for navigator.png and workout.png, and explains why it doesn't find anything. In short, your Pale Moon windows are not "app palemoon" for alttab. |
Beta Was this translation helpful? Give feedback.
-
For blacked out icons: perform the same analysis, to realize where are they come from. If they come from X Window properties, then make them come from the sources you control (i.e., from files), you already know how. I suggest we tackle the problems one at a time. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to choose larger icons? If I set -i 256x256 it does this strange bit where it will pull the wrong icons for somethings but those will scale correctly where as where it pulls the correct icons it seems to limit itself to icon sizes of 64x64 then scales them up to become blurry.
So for example I have some terms with custom window classes and icons to match. Alttab grabs those icons but after 64x64 it upscales and they are ugly and blurry despite them having versions from 16x16 to 512x512. Then KeypassXC it uses a stock icon despite my icon theme having icons for it the same as the terms but that icon scales cleanly.
Just for experimentation I've tried all the -s options to no change. I can't figure out why for some things it tops out with the 64x64 icons but then others where the win_class has a matching icon it ignores it and defaults to hicolor. The only thing I've noticed was xprop doesn't seem to see an icon with the hicolor choices.
Beta Was this translation helpful? Give feedback.
All reactions