New beta version of “Toolbar Icon Manager for IceWM”

Forum Forums General Software New beta version of “Toolbar Icon Manager for IceWM”

  • This topic has 37 replies, 7 voices, and was last updated Dec 21-3:51 am by Anonymous.
Viewing 15 posts - 16 through 30 (of 38 total)
  • Author
    Posts
  • #46664
    Member
    PPC
      Helpful
      Up
      0
      ::

      Hi folks, yesterday I was tired and upload the wrong script 🙁
      Here is the “final” T.I.M. version 1…

      Code available at:
      https://pastebin.com/raw/pwEjxsX1

      Fixed a regression: the script did not try to perform a search for missing application icons
      Added: search in one more .desktop folder (script has a NOTE about how to add more .desktop folders)

      Note: the add icon interface is just like the one in my recently proposed “add icon to desktop” script- so users had basically the same (I hope intuitive) way to add icons to the toolbar or desktop.

      Now I’ll enjoy the rest of my week-end…

      P.

      EDIT: and only now downed on me that the add and remove windows could remain open until the users closes them, so it’s easier to add/remove multiple icons (I’m looking at you Moddit 🙂 )- what do you think? It would be trivial, adding an infinite loope in each of those windows…

      P.

      • This reply was modified 2 years, 5 months ago by PPC.
      #46670
      Member
      Xecure
        Helpful
        Up
        0
        ::

        Tested it for a bit. It works great.

        Thanks, PPC.

        antiX Live system enthusiast.
        General Live Boot Parameters for antiX.

        #46745
        Moderator
        BobC
          Helpful
          Up
          0
          ::

          I tested your new script as well, and I didn’t have any problems, either.

          As part of his helping with “Add a Desktop Icon” option from App-Select, Dave added the ability to add custom programs to run on the selected app right click menu, and I created an Add to Toolbar option for it. It’s based on your add code, but could be run from app-select independently or called from your script if you wanted to use it to do the adds. Since its separate, I’ll create a separate thread for it.

          PS: I had added some actually unneeded icons in testing, so I went back and used your script to try to delete them, and it allowed me to select them to delete, but didn’t do it. It came back and said “no changes made” instead of removing it. I think it has problems maintaining the last icon on the list. I wasn’t able to move or remove it.

          • This reply was modified 2 years, 5 months ago by BobC.
          #46750
          Anonymous
            Helpful
            Up
            0
            ::

            > it allowed me to select them to delete, but didn’t do it.

            del ~/.tempo ;

            try “rm” instead of “del” (on some systems, the latter exists as an alias somewhere, somehow?)

            #46751
            Member
            PPC
              Helpful
              Up
              0
              ::

              @Skidoo – thanks, I’ll edit the code, later, implementing that change..
              @BobC – hum… I never had that problem before- did the icon’s entry on the toolbar file include strange characters like “(“, etc? If you can, send me the entry the script was unable to delete, so I add it to my toolbar file and check it out… I have not yet had any problems adding or removing any icon, adding one icon, removing it, adding it again and moving it around is how I test each version of the script… try implementing Skidoo’s suggestion, test removing that icon and please report back… I do hate bugs 🙁

              P.

              • This reply was modified 2 years, 5 months ago by PPC.
              #46762
              Moderator
              BobC
                Helpful
                Up
                0
                ::

                Yes, well my toolbar has 31 icons including 2 commented out, and a blank line possibly at the end, so it’s likely an acid test. I really use it, though. Its been a wonderful productivity improver. If you can’t open it or doesn’t look right I’ll post it here. There isn’t anything really unusual about it otherwise.

                https://pastebin.com/YHcq2NWX

                #46820
                Member
                ModdIt
                  Helpful
                  Up
                  0
                  ::

                  Hi PPC,
                  EDIT: and only now dawned on me that the add and remove windows could remain open until the users closes them,
                  so it’s easier to add/remove multiple icons (I’m looking at you Moddit 🙂 )- what do you think? It would be trivial,
                  adding an infinite loope in each of those windows


                  You say trivial to setup, seems to me it would be more expected behaviour for a user.

                  Please go for it.

                  The tool is near perfect now, Many many thanks to all involved.

                  • This reply was modified 2 years, 5 months ago by ModdIt.
                  #46829
                  Member
                  PPC
                    Helpful
                    Up
                    0
                    ::

                    @Moddit – wish granted: now users can add as many icons as they want in a even faster way- the app’s list remains open until it’s closed- adding some 30 icons can be done in less than a minute, a bit more if the user wants them to be added in a specific order (because the user then has go to up and down the apps list, double clicking the app to add them to the toolbar).
                    And thanks, for your thanks- this script is my “one man show” (since I tough myself bash while writing it, it cannibalized and adapted many on-line examples of how to perform the actions I wanted the script to do…)

                    Other small changes:
                    – The “add icon” window has a single button, with a “+” sign and a small description of what it does, just for users that don’t get the hang of “double clicking”
                    – Corrected a bit the “advanced” dialog instructions

                    New code available here:
                    https://pastebin.com/raw/Tz5Yr2Nw

                    @Bob- I tried your toolbar- the fault, as I guessed, was in having a “special character” in the icon’s description, in your case a “/”- sorry, but I haven’t found a way to work around that…
                    The number of icons, or commented lines in the toolbar file does not affect how the script behaves… It’s “kryptonite” is strange characters, because of the way the text in the config file s processed (using sed – “/” is used by sed to indicate how it should behave)… Skidoo, if you, or someone more knowledgeable than me can find a way around that, I would appreciate the help…

                    So, I guess I should add a new line to the “help file”, something like:
                    Warning: the script can't delete icon's whose icon's description includes characteres like \|/*, etc.

                    • This reply was modified 2 years, 5 months ago by PPC.
                    #46839
                    Anonymous
                      Helpful
                      Up
                      0
                      ::

                      We can choose characters other than forward-slash to serve as the delimiter character.
                      Each of the following would be equally valid, producing identical results.

                      sed ‘s/shoe//g’
                      sed ‘s@shoe@@g’
                      sed ‘s_shoe__g’
                      sed ‘s^shoe^^g’

                      #46840
                      Member
                      marcelocripe
                        Helpful
                        Up
                        0
                        ::

                        @PPC,

                        Thank you very much for updating TIM, it was excellent!

                        Please increase the display time of the warning windows that automatically disappear from 4 seconds to 10 seconds, with little time to read the text (when translated, of course).
                        Please allow to copy the text of ‘Help’, so it is easier to copy the text of TIM and paste it on the internet translator. Did you understand a logical reason? We can make it even easier for the beginner and basic user in the small details. Something that does not exist in Windows, this conversation, the user (me) can chat with the developers. Thank you very much for allowing me to come up with several suggestions and ideas.

                        Thank you.

                        marcelocripe
                        (Original text in Brazilian Portuguese)

                        ———-

                        @PPC,

                        Muito obrigado pela atualização do TIM, ficou excelente!

                        Por favor aumente o tempo de exibição das janelas de aviso que somem automaticamente de 4 segundos para 10 segundos, com pouco tempo não då para ler o texto (quando for traduzido, é claro).
                        Por favor, permita copiar o texto da ‘Ajuda’, assim fica mais fĂĄcil de copiar o texto do TIM e colar no tradutor da internet. Entendeu um motivo lĂłgico? Podemos facilitar para o usuĂĄrio iniciante e bĂĄsico atĂ© isso, nos pequenos detalhes. Algo que no Windows nĂŁo existe, esta conversa, o usuĂĄrio (eu) poder conversar com os desenvolvedores. Muito obrigado por me permitir apresentar diversas sugestĂ”es e ideias.

                        Muito obrigado.

                        marcelocripe
                        (Texto original em PortuguĂȘs do Brasil)

                        #46850
                        Member
                        PPC
                          Helpful
                          Up
                          0
                          ::

                          Thanks for all feeback!
                          @skidoo – thanks for the suggestion, but I could not implement that in my “delete icon” function 🙂

                          @marcelocripe – sorry, I’m putting my “scripting” on hold for now- T.I.M. works pretty well has is…
                          The only “bug” is when deleting icons that have descriptions with “escape characters” or special scharacters: “\ | /”, etc.

                          I work on antiX for fun… when this begans to stress me instead of helping me relax, it’s time to take a break…

                          P.

                          #46852
                          Anonymous
                            Helpful
                            Up
                            0
                            ::

                            This?
                            > Line=$(sed -n “/$x/=” ~/.icewm/toolbar)

                            To handle possibility of spaces within strings, howabout ‘/”$x”/=’
                            If that is not sufficient, maybe it’s time for us to crack open the “GNU awk User’s Guide and Galactic Compendium, 43rd Edition

                            #46853
                            Member
                            PPC
                              Helpful
                              Up
                              0
                              ::

                              @Skidoo – that’s the problematic line- but it works fine with spaces, just not / \ | and *,that break the sed command…
                              I’ve found a way around the “/” changing line 80 to use grep instead of “sed”, but that was as far as I got…

                              Line=$(grep -n -m 1 "$x" ~/.icewm/toolbar | cut -f1 -d:)

                              #46857
                              Member
                              marcelocripe
                                Helpful
                                Up
                                0
                                ::

                                PPC wrote:
                                I work on antiX for fun
 when this begans to stress me instead of helping me relax, it’s time to take a break


                                PPC, rest. When it starts to stress, it’s time to stop.

                                Don’t worry, you already have a huge list of collaborations, the most recent ones I’m trying to keep up with: Control Panel, Toolbar Icon Manager for IceWM, antiX “transformation” pack (min-fluxbox with tint2 toolbar) – antiX “FT 10 ”, Unplugdrive and etc.

                                I thank you for all your effort, commitment and time.

                                Thank you.

                                marcelocripe
                                (Original text in Brazilian Portuguese)

                                ———-

                                PPC wrote:
                                I work on antiX for fun
 when this begans to stress me instead of helping me relax, it’s time to take a break


                                PPC, descanse. Quando isso começa a estressar é que jå estå na hora de parar.

                                NĂŁo se preocupe, vocĂȘ jĂĄ possui um lista gigantesca de colaboraçÔes, as mais recentes que eu estou tentando acompanhar: Painel de Controle, Toolbar Icon Manager for IceWM, antiX “transformation” pack (min-fluxbox with tint2 toolbar) – antiX “FT 10”, unplugdrive e etc.

                                Eu agradeço por todo o seu esforço, empenho e tempo.

                                Muito obrigado.

                                marcelocripe
                                (Texto original em PortuguĂȘs do Brasil)

                                #46858
                                Moderator
                                BobC
                                  Helpful
                                  Up
                                  0
                                  ::

                                  When Dave adds the new code to repos (in gitlab now) with custom plugin addon ability to app-select I have the code ready to add for IceWM from there as well. I can see how to do it for JWM, but not familiar with FluxBox, so need to figure that out, hopefully by the weekend. Busy at work, so this needs to be off hours.

                                  • This reply was modified 2 years, 5 months ago by BobC.
                                Viewing 15 posts - 16 through 30 (of 38 total)
                                • You must be logged in to reply to this topic.