Forum › Forums › antiX-development › Development › Toolbar Icon Manager for Icewm – altered version
- This topic has 15 replies, 6 voices, and was last updated Feb 23-12:22 pm by martintxoz.
-
AuthorPosts
-
September 5, 2021 at 6:44 pm #66473Member
PPC
Hi! Marcelocripe called to my attention that TIM did not show descriptions in languages identified by more than 2 letters (like pt_BR)…
I altered the current TIM version to try to solve this (lines 22…)Test version available in: https://gitlab.com/antix-contribs/antix-goodies/-/blob/master/icewm-toolbar-icon-manager-2021.sh
I tested it in several languages, in a VM and it seems to work… If this pans out, the changes should be incorporated in the current TIM version…
P.
September 6, 2021 at 5:11 am #66522MemberRobin
::Great job, PPC. I’ve glanced into it and I’m sure this should work fine. Thank you very much for your tireless work. And also many thanks to Marcelo for scenting out this bug. I believe this fix is fine and can simply get merged into TIM now.
Robin
Windows is like a submarine. Open a window and serious problems will start.
September 6, 2021 at 7:22 am #66537Forum Admin
anticapitalista
::whoops posted to wrong thread.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
September 6, 2021 at 4:30 pm #66552Member
marcelocripe
::Hello PPC,
Thanks for reviewing the IceWM Toolbar Icon Manager code.
I tested it last night but it was too late so I couldn’t post in this thread.
The tests I did were on antiX 19.2 Full 64 bits (installed), antiX 19.4 Full 32 bits kernel 4.9.0-264 (via USB Executable/Live USB), antiX 21 b2 runit Full 64 bits kernel 5.10.57 (via USB Executable/Live USB). In all tests, the texts displayed in the list are the texts that are in the pt_BR line of the .desktop files. I have successfully added, moved and removed icons. The program is perfect! And now it “sees” 4-letter languages.
Note: This topic addresses the topic https://www.antixforum.com/forums/topic/toolbar-icon-manager-list-for-icewm-is-not-located-for-pt-br/.
Thank you very much.
marcelocripe
(Original text in Brazilian Portuguese)– – – – –
Olá PPC,
Obrigado por revisar o código do Gerenciador de Ícones da Barra de Ferramentas do IceWM.
Eu testei ontem à noite, mas já estava bem tarde e por isso eu não consegui postar neste tópico.
O testes que eu fiz foram no antiX 19.2 Full 64 bits (instalado), antiX 19.4 Full 32 bits kernel 4.9.0-264 (via USB Executável/Live USB), antiX 21 b2 runit Full 64 bits kernel 5.10.57 (via USB Executável/Live USB). Em todos os testes, os textos exibidos na lista são os textos que estão na linha pt_BR dos arquivos .desktop. Eu adicionei, movi e removi os ícones com sucesso. O programa está perfeito! E agora “enxerga” idiomas de 4 letras.
Observação: Este tópico soluciona o tópico https://www.antixforum.com/forums/topic/toolbar-icon-manager-list-for-icewm-is-not-located-for-pt-br/.
Muito obrigado.
marcelocripe
(Texto original em Português do Brasil)September 6, 2021 at 4:54 pm #66553Forum Admin
anticapitalista
::Thanks PPC – next update of antix-goodies will have the fix.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
October 23, 2021 at 11:07 pm #69439Member
Wallon
::Hello,
This is just to report a small bug.
I have tested “Toolbar Icon Manager” on antiX-21-b2_x64-full Grup Yorum 6 September 2021 (sysvinit – full upgraded – fr_BE)
When I click on the “? Help” button, there is nothing. No window in English or in French. It’s as if the link to the help text doesn’t work.
Best regards,
WallonNovember 4, 2021 at 11:29 pm #70257MemberPPC
::Well, I wanted to have this ready before antiX 21 final was out… but… life gets in the way:
Updated version of Toolbar Icon Manager:
-Major change:
now displays icons to be added to the toolbar (like users expect)
-Minor changes:
Edited the “quit” button in several windows, to feature only an ” x “, because the gtk-quit button is not localized to other languages
Added an icon to the main menu title bar
Added new folder to check to icons, so it’s almost imposible not to find a correct iconTODO’s:
Well, I just noticed that, if you change the default icon set, TIM still adds the default Papirus icon… Don’t expect a fix for that anytime soon, probably does not impact anyone…It’s available here: https://gitlab.com/antix-contribs/contribs-goodies/-/blob/master/icewm-toolbar-icon-manager-v22.sh
Please do test it and report any bugs here, but I’ve tested it extensively and it worked fine (in antiX 19,4)
November 5, 2021 at 11:29 am #70290MemberPPC
::I pleased to say that I consider Toolbar Icon Manager completely finished. I uploaded (on the previous link) all the latest changes:
-Add/Move/Remove icons windows now show icons to be worked on ( to be added/moved/deleted)
-I messed up yesterday and added the wrong icon, I fixed that and added the correct TIM icon to (I hope) all windows, making it look a bit more polished.TODO: if you run the script from the terminal, you get a couple of errors, they do not interfere with how the script works, I’m trying to find what causes that and solve that.this version can replace the default TIM that is included in antiX.
If no other bugs are found,Side note: after some years, finally TIM looks and acts the way I always inteded it to (basicly the way some used to a Desktop Environment expects- if an user is managing icons, he/she expects to see the actual icons, not just text). If it’s icon is placed in the toolbar, it allows any user, even the most basic one, to add and remove icons to the toolbar. I kid you not that I’ve read several comments on-line of users asking how to add icons to the bar. Most users don’t explore the menu, most users don’t bother going to the forum and, even less to register and ask a question here. Many just ask questions in YouTube comments (I always find that weird- they do that, but don’t bother to “google” the very same – which, in 90% of the cases would provide an answer).
This is not a final version, until someone else other than me tests it and finds no bugs.
P.
- This reply was modified 1 year, 6 months ago by PPC.
- This reply was modified 1 year, 6 months ago by PPC.
November 5, 2021 at 11:57 pm #70364Member
marcelocripe
::Hello PPC.
The texts that were displayed are from the pt lines of the .desktop files, we still need to include that “magic” code to read languages with more than 2 letters.
I managed to add, move and remove some toolbar icons for IceWM. The list of icons being displayed like this is a significant evolution, I thought it was very beautiful, because in addition to the icon, it displays the text contained in “Name[pt]=” (lacks displaying “Name[pt_BR]=”) and the program’s executable.
Suggestions: include that “magic” code to read languages of more than 2 letters, force all icons to be displayed with the same 48×48 or 24×24 size (one of the icons of one of the programs I installed is much larger in size and it’s ruined the appearance by shifting the first column to the right), if the 48×48 icon does not exist, then displays the 24×24 folder. Even though you can’t force the one-size-fits-all, the program works and is very similar to AppSelect (what will Dave’s “magic” be for displaying icons of the same size in AppSelect?).
Thank you very much.
– – – – –
Olá PPC.
Os textos que foram exibidos são das linhas pt dos arquivos .desktop, falta incluir aquele código “mágico” para ler os idiomas de mais de 2 letras.
Eu consegui adicionar, mover e remover alguns ícones da barra de ferramentas para IceWM. A lista de ícones sendo exibida assim é uma evolução significativa eu achei muito bonito, pois além do ícone, exibe o texto contido em “Name[pt]=” (falta exibir “Name[pt_BR]=”) e o executável do programa.
Sugestões: incluir aquele código “mágico” para ler os idiomas de mais de 2 letras, forçar que todos os ícones sejam exibidos com o mesmo tamanho 48×48 ou 24×24 (um dos ícones de um dos programas que eu instalei possui o tamanho muito maior e estragou a aparência, deslocando para a direita a primeira coluna), caso o ícone 48×48 não exista, então exibe o da pasta 24×24. Mesmo que não seja possível forçar o tamanho único, o programa funciona e é muito parecido com o AppSelect (qual será a “mágica” do Dave para exibir os ícones do mesmo tamanho no AppSelect?).
Muito obrigado.
November 6, 2021 at 12:31 am #70365MemberPPC
::@marcelocripe
Thanks for noticing the language code problem- I already solved that problem (thought that I carried the solution here, but a single typo messed it up… You can now redownload the script- it should work in pt-br!Obrigado por notar o problema com os código de linguagem- já o resolvi (eu pensei ter transposto a solução para aqui, mas um único caracter mal escrito estragou tudo. Pode baixar novamente o script- já deverá funcionar em pt-br!
P.
November 6, 2021 at 3:18 pm #70412Member
marcelocripe
::Hello PPC.
It’s me who thanks you for developing, programming, maintaining the updates and improvements in TIM.
Now it displays the texts of the lines in pt_BR of the .desktop files.
The following texts I will not include in the machine translation to avoid the risk of being messed up by the internet translator.
I re-tested all buttons, Help, Advanced, Add, Remove, Move and Undo, everything worked after several tests.
Thank you very much.
– – – – –
Olá PPC.
Sou eu que te agradeço por você desenvolver, programar, manter as atualizações e melhorias contantes no TIM.
Agora exibe os textos das linhas em pt_BR dos arquivos .desktop.
Os textos a seguir eu não irei incluir na tradução automática para não correr o risco de ser bagunçado pelo tradutor da internet.
Sugestões para podermos ter a exibição da tradução do arquivo .mo na GUI:
Na linha 210:
–button=”Move” < /tmp/parsed_icons_in_toolbar.txtPor favor, incluir o sifrão ‘$’ para obtermos a tradução do botão ‘Mover’:
–button=$”Move” < /tmp/parsed_icons_in_toolbar.txtNa linha 231:
–text=$”Choose what do to with $selection_parsed icon”
O seu código possui o sifrão ‘$’, mas eu não sei porque não foi exibido a tradução quando eu executei a versão atual, eu não tinha reparado nisto antes, provavelmente por causa do sono enquanto eu testava a versão anterior. Eu preciso continuar estudando sobre tradução de scripts para eu poder ajudar mais com isso. É a única que eu não consegui fazer exbir os textos em pt-BR. O texto que é exibido em $selection_parsed está traduzido para pt-BR exatamente como está no arquivo .desktop.
Na linha 352:
–title=”Toolbar Icon Manager”Por favor, incluir o sifrão ‘$’ para obtermos a tradução na barra de título da GUI principal:
–title=$”Toolbar Icon Manager”Eu testei novamente todos os botões, Ajuda, Avançado, Adicionar, Remover, Mover e Desfazer, tudo funcionou após os vários testes.
Muito obrigado.
November 6, 2021 at 4:52 pm #70424Member
Wallon
::Dear PPC,
Is it possible for you to update the translation done in French (at Transifex) for this beautiful program ?
After using this magic program, I have modified the translation.Thank you very much for your work.
Best regards,
WallonNovember 6, 2021 at 6:50 pm #70436MemberPPC
::@Marcelocripe – thanks for your help finding those localization bugs- I think I corrected them all, please recheck, when you have the time…
@Wallon- Thank you, and thanks for updating the translation. Unfortunatly the Dev team are the ones that package antiX’s files, so I have no say about which localization files are used.
I created the script without knowing if it would ever be localized, that’s why there’s as little text as possible, and most buttons have icons, so even someone that can’t read a single line of what’s writen in the window, would understand how to work with TIM…P.
December 29, 2021 at 5:53 pm #74058Membermartintxoz
::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: https://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: https://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: https://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 https://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.
Attachments:
January 27, 2022 at 5:26 pm #76236MemberPPC
::@martintxo – sorry to take so long to get back to you- you address some of the problems I would (eventually) try to solve in this script- thanks for that. I’ll try to take a look at it and I hope to learn for your proposed changes!
Please note- I use some scripts based in TIM in my FT10 project- I decided to use app-select as a way to get the application that will be added- I haven’t performed that switch in TIM because of the “con”.
Pros of using app-select to choose the app to be added- app-select allows the user to type to search for the app to be added, and searchs also the description of the app.
Cons: my script takes a bit to load but once loaded, it runs instantly… the downside of using app-select is that it takes its time to load, for every single app you want to add to the toolbar. If you are making your initial configuration, on a slow computer, and adding 10 or so icons to the toolbar, this can be frustrating…P.
Edit: I will continue to study your script, but my test on the single core Desktop I use for work, unfortunalty does not run very well- I do love the new selection window, with much more info, but it takes almost 30 seconds to display the list of available apps- the regular TIM takes about 1/3 of that time to load initially, and then the user can select instantly any number of application that are to be added to the toolbar.
Since antiX main goal is to make old computers usable, that part of your suggestion can’t be inserted into the default TIM.I hope you continue to apply your scripting skills to improve antiX!
- This reply was modified 1 year, 3 months ago by PPC.
-
AuthorPosts
- You must be logged in to reply to this topic.

