BETA: New, faster version of IceWM Toolbar Icon Manager

Forum Forums antiX-development Development BETA: New, faster version of IceWM Toolbar Icon Manager

  • This topic has 35 replies, 6 voices, and was last updated Feb 20-9:32 pm by Brian Masinick.
Viewing 6 posts - 31 through 36 (of 36 total)
  • Author
    Posts
  • #100069
    Member
    PPC
      Helpful
      Up
      1
      ::

      Sometimes, less is more: I choose to simply close any previously open window with exactly the same title, if one was already running- simple and efficient way to allow only one instance of the script…

      I think that this can be the “final” version.

      EDIT: nope, I recommend v. 6.1

      The code to enable only one instance of the window (by closing the previous one), for anyone curious (this may come in handy for anyone creating scripts, just change the variable window_title to match the title of your window):

      ###Don't allow more than one instance:
      window_title=$"Toolbar Icon Manager"
      wmctrl -l|awk '{$3=""; $2=""; $1=""; print $0}' > /tmp/window_list
      check=$(cat /tmp/window_list | grep "$window_title"$) ###the $ on the end makes sure that the window name ends in $window_title
      if [ -n "$check" ]; then
        # $window_title was found on the window list, so it is running, close the old instance, to keep only the latest one
        wmctrl -c "$window_title"
      fi

      P.

      • This reply was modified 2 months, 3 weeks ago by PPC.
      • This reply was modified 2 months, 3 weeks ago by PPC.
      #100075
      Member
      PPC
        Helpful
        Up
        0
        ::

        After further testing: do not use this previous scripts, that try to allow only one instance of the window- stick with v.61
        Let users open several intances of the script, if they want to… I won’t debug this scripts any more, unless bugs are found…

        P.

        #100091
        Moderator
        Brian Masinick
          Helpful
          Up
          0
          ::

          I haven’t been on a computer much today, but I think the word here is to “Hold still”, so I will.
          I’ll wait a day or two before trying a script; I’m actually reading some of these messages from a different distro anyway, plus I was visiting nearby family relatives today.

          --
          Brian Masinick

          #100102
          Member
          marcelocripe
            Helpful
            Up
            0
            ::

            Hello PPC.

            In one of your recent show threads, we talked about button translations. You had asked me if the buttons are translated or not in the TIM of antiX 22 started with the language “pt_BR”, the answer is “Yes”.

            – – – – –

            Olá PPC.

            Em um dos tópicos dos seus programas mais recentes, nós conversamos sobre as traduções dos botões. Você havia me questionado se os botões estão traduzidos ou não no TIM do antiX 22 inciado com o idioma “pt_BR”, a resposta é “Sim”.

            #100112
            Member
            RJP
              Helpful
              Up
              0
              ::

              v2023-62 is working fine! Great job!

              #100194
              Moderator
              Brian Masinick
                Helpful
                Up
                0
                ::

                February 18, 2023 at 8:45 pm post #99994 update https://www.antixforum.com/wp-content/uploads/2023/02/icewm-toolbar-icon-manager-v2023-61.zip
                unzipped and it works fine. As stated, it appears to be a small fix.

                I have copies of the IceWM Toolbar Icon Manager tool, the antiX-workspace-manager, the icewm-quick-personal-menu-manager, and a quick experiment, the mini-antiX-help.bash, which I have set up to write the note and update the system. Each of these handy tools appears to work as they were described at the time they were shared. In my case I have my own ~/bin directory where I keep self-maintained scripts that others have shared or I’ve written myself or modified for personal use. Several of these tools are useful and handy.

                --
                Brian Masinick

              Viewing 6 posts - 31 through 36 (of 36 total)
              • You must be logged in to reply to this topic.