Forum › Forums › antiX-development › Development › Toolbar Icon Manager for Icewm – altered version › Reply To: Toolbar Icon Manager for Icewm – altered version
Hello!!
I have just registered in this forum to answer this …
I am a user with many years in Debian Testing, always using Icewm. Recently I have changed the configuration to have a taskbar doubleheight that allows a few fast application launchers buttons. I am very happy with the change.
In order to make rapid changes to the buttons I have searched for some graphic application and finally I found the Toolbar Icon Manager for IceWM of Antix, first testing AntiX in LiveCD, later finding the AntiX-Goodies package where the script is, and finally finding this forum.
I have made changes to version 22 of the script that is at: http://gitlab.com/antix-contribs/contribs-goodies/-/blob/master/icewm-toolbar-icon-manager-v22.sh
The main changes are:
1. The original original script is slowly to start because the first thing it do is to search in all the system’s .desktop files. And that search is not always necessary, for example to move the icons or to erase them. I have moved the code that makes that search to the add_icon() function and so the main window appears quickly.
2. In the v-22 script, the icons are seen from various sizes in my system, and they are ugly. See the first screenshot. Apparently it is because those icons are specified by it’s full path, and are shown at the scale they have, while the icons specified by their name are scaled, see: http://github.com/v1cont/yad/issues/129#issuecomment-823784624. So I have forced the icons to be shown by their name, and in my case the result is better. See the second screenshot.
3. The original script needs to make many types of searches to find the icon to put on the toolbar, and you do not always find the right one. However, if the icewm menu is handled with “icewm-menu-fdo” (a icewm program) or xdgmenumaker (from: http://github.com/gapan/xdgmenumaker), the icon is already properly found in the icewm menu. So I prefer “simply” to make a search at the icewm menu to put the same line in the Toolbar file.
In addition there are some other minor changes that I think does not matter.
If you are interested in the modifications, I have uploaded the script modified at http://github.com/martintxoz/my-humble-scripts/blob/main/icewm-toolbar-icon-manager-v22-mio1.sh
Use this code as needed. The license of my work is the same one that has the original work, of course.
Many thanks for your work. I am not a coder, I do not know much about scripts. I have only got into this because I had some free time on these holiday days. I do not think I can dedicate more time to this, but I am willing to clarify doubts, if necessary.
Greetings. Martintxo.