[Suggestion] unplugdrive small script comestic change

Forum Forums General Software [Suggestion] unplugdrive small script comestic change

  • This topic has 7 replies, 4 voices, and was last updated Dec 17-5:30 pm by PPC.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #47542
    Member
    PPC

      Hi, everyone, I’m still away from scripting, but I had this “mutated” unplugdrive laying around in my hard drive, so, here it is:

      https://pastebin.com/raw/bCY1YUvU

      Changes:
      – it now uses no window decorations and places the yad windows near the mouse pointer – I did this because I think most people just click that script’s toolbar icon, and it’s expected that the “unplug drive” window appears next to it.
      – I also made the warning windows disappear after a few seconds, so there’s on less button for the users to click
      – The main window is a bit more stylized, and now easier to understand in almost any language, also easier to localize

      Todo: I wish that, when I adapted the script I also included a way to only display the name of the mounted USB device’s partition, not the (useless) full path…

      P.

      • This topic was modified 2 years, 4 months ago by PPC.
      #47544
      Moderator
      BobC
        Helpful
        Up
        0
        ::

        I also modified the original version from the repos. My mod was to reduce the number of screen popups when there was no problem. I’ll give your new one a try, and see if its working better than before.

        #47547
        Anonymous
          Helpful
          Up
          0
          ::

          places the yad windows near the mouse pointer

          excellent attention to detail. Kudos!

          #47548
          Moderator
          Brian Masinick
            Helpful
            Up
            0
            ::

            I agree, great work!

            --
            Brian Masinick

            #47549
            Anonymous
              Helpful
              Up
              0
              ::

              reduce the number of screen popups when there was no problem

              .

              #47551
              Moderator
              BobC
                Helpful
                Up
                0
                ::

                Yes, no problems here, either, even with a Knoppix flashdrive 🙂

                #47592
                Member
                PPC
                  Helpful
                  Up
                  0
                  ::

                  Just because seeing the mount point path of the USB device’s mounted partition always bugged me, and it was just a matter of adding a single line with the right sed command, here’s the latest code, much more newbie friendly and plain simply easier to read for hardcore users:

                  https://pastebin.com/raw/HqtK3f14

                  P.

                  #47601
                  Member
                  PPC
                    Helpful
                    Up
                    0
                    ::

                    This is part of the reason why I have to stay away from scripting… It keeps nagging at me until I get the script to to what I want…

                    New extremely different version of the unplugdrive script, that lists only drive’s name and mount point for the first partition of that drive:

                    https://pastebin.com/raw/qr8jd6de

                    (you can edit the main YAD window to show all partition names- I just commented the original main yad window, on line 79- thats only handy for cases like antiX live usb drives, that have more than one partition… Generally speaking, users tend to have one partition per usb drive, and most people don’t have more than 1 or 2 usb drives plugged it, so this setup seems more logical and intuitive to me)

                    P.

                    It looks like this: easy to read, understandable for newbies and advanced users alike…

                    • This reply was modified 2 years, 4 months ago by PPC.
                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • You must be logged in to reply to this topic.