Volume Indicator for AntiX

Forum Forums General Software Volume Indicator for AntiX

  • This topic has 25 replies, 7 voices, and was last updated Mar 19-7:33 pm by olsztyn.
Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #102243
    Member
    Lead Farmer

      This app will show a volume indicator at bottom right corner.
      Changing the volume can be done by moving the slider or the arrow keys in +5 or -5 steps.

      This app is an alternative to volumeicon but can run with it, removing volume_icom in startup will save you ~6MB, mine is 142MB without volumeicom.

      How to install

      1) Extract the folder volume_indicator to home folder
      2) Add hotkeys in Control Center > Edit IceWM setting > keys, and set ctrl+up and ctrl+down to activat the script.

      #Volume indicator
      key "Ctrl+Up" volume_indicator/volume_indicator.sh
      key "Ctrl+Down" volume_indicator/volume_indicator.sh

      How to does it work:

      Ctrl+Up or Ctrl+Down to show the volume indicator with current volume level.
      1) you can move the slider to change the volume value.
      2) arrow UP or Left will increase the volume by 5
      3) arrow Down or Right will decrease the volume by 5

      Optional

      Remove volume_icon from taskbar in startup, Control Center > Session > User Desktop Session, and add # to volumeicon

      #volumeicon &

      Configuration

      In the file volume_indicator.sh you can change the number of steps “step=5”, also you can change X and Y where the indicator will show in the screen.

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Version 1.1

      I add a speaker or headphone icon to the slider, the default is white but I also add black in the folder.
      The icon will changed to headphone if the headphone is connected. the widget need to be reset.

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Version 1.2

      Bug fix

      edit: add “How to does it work:”

      • This topic was modified 1 month, 3 weeks ago by Lead Farmer.
      • This topic was modified 1 month, 3 weeks ago by Lead Farmer.
      • This topic was modified 1 month, 3 weeks ago by Lead Farmer.
      #102248
      Member
      PPC
        Helpful
        Up
        0
        ::

        An OS should be always open to innovation, but antiX already includes lots of scripts that do the same or similar tasks to what you want to achieve. In antiX case, it already includes yad-volume. There’s no real need to write a new script, other, of course, learning how to do it, or try to make it more efficient, or add new features.
        I like your idea of having keyboard shortcuts for this, but the ones you choose are already taken, for example, in Firefox, ctrl + Down or Up allow users to scroll down or up…

        P.

        #102250
        Member
        Lead Farmer
          Helpful
          Up
          0
          ::

          n OS should be always open to innovation, but antiX already includes lots of scripts that do the same or similar tasks to what you want to achieve. In antiX case, it already includes yad-volume. There’s no real need to write a new script, other, of course, learning how to do it, or try to make it more efficient, or add new features.

          I disagree volumeicon is not a good indicator in my opinion,first it have only 6 images to indicate the volume, not really useful to know volume level. second the when I changed the volume before with function key + left or right I can’t see the volume level unlike in Windows or other OS, with my script I can.

          Of course I can add yad icon icon that will run the script, but I didn’t because it is not necessary.

          Please test script. and tell me what you think.

          • This reply was modified 1 month, 3 weeks ago by Lead Farmer.
          #102252
          Member
          PPC
            Helpful
            Up
            0
            ::

            I tested your script. It does almost the same as yad-volume. Please note that yad-volume is not volumeicon. It was created by me to be a “spare” GUI way to manage volume (that does not stay resident in RAM, when not being used), summoned by a toolbar entry or keyboard shortcut (just like you thought, when you created your script).

            #102254
            Member
            Lead Farmer
              Helpful
              Up
              0
              ::

              I tested your script. It does almost the same as yad-volume. Please note that yad-volume is not volumeicon. It was created by me to be a “spare” GUI way to manage volume (that does not stay resident in RAM, when not being used), summoned by a toolbar entry or keyboard shortcut (just like you thought, when you created your script).

              I didn’t know about yad-volume

              #102320
              Member
              ile
                Helpful
                Up
                0
                ::

                Hello Lead Farmer And PPC

                Nice work.
                Visit this Topic:

                “How to get volume level indicator on screen”

                https://www.antixforum.com/forums/topic/how-to-get-volume-level-indicator-on-screen/page/2/#post-95788

                PPC’s version on the tint2 panel is excellent.

                #102323
                Member
                Robin
                  Helpful
                  Up
                  0
                  ::

                  This app will show a volume indicator at bottom right corner.

                  Sorry, I’m not sure what all this is about: For me antiX has always had this volume control your screenshot shows at bottom right corner. It has been there for me out of the box in antiX 17, 19, 21, 22, and now also on antiX 23. How come you’ve been missing it? Or what am I misreading here?

                  antiX default volume control

                  And, does the replacement script you’ve written also come up in context menu with an entry to start the full alsamixer, providing sliders for all available recording and playback channels? (The volumeicon present in in antiX 22 and antiX 23 taskbar comes up with the info: “Volume icon 0.4.6 Maato 2011, http://softwarebakery.com/maato/volumeicon.html”.)

                  Windows is like a submarine. Open a window and serious problems will start.

                  #102326
                  Member
                  Lead Farmer
                    Helpful
                    Up
                    0
                    ::

                    This app will show a volume indicator at bottom right corner.

                    Sorry, I’m not sure what all this is about: For me antiX has always had this volume control your screenshot shows at bottom right corner. It has been there for me out of the box in antiX 17, 19, 21, 22, and now also on antiX 23. How come you’ve been missing it? Or what am I misreading here?

                    Not the same thing, yes you can open the slider by pressing the icon, and also see the volume value when you hover the icon, but it doesn’t show that when you increase or decrease the volume form an hotkey like function key + left or right arrows.

                    And, does the replacement script you’ve written also come up in context menu with an entry to start the full alsamixer, providing sliders for all available recording and playback channels? (The volumeicon present in in antiX 22 and antiX 23 taskbar comes up with the info: “Volume icon 0.4.6 Maato 2011, http://softwarebakery.com/maato/volumeicon.html”.)

                    The script only change the master volume with

                    amixer sset Master number%

                    • This reply was modified 1 month, 3 weeks ago by Lead Farmer.
                    #102345
                    Member
                    PPC
                      Helpful
                      Up
                      0
                      ::

                      @Robin – this script’s concept is about having a On Screen Display (OSD) that pops up when you use the keybindings to increase or decrease audio volume. Like Ile noticed, a similar goal could already be achieved using keybindings and the pre-existing yad-volume script.

                      #102347
                      Member
                      Lead Farmer
                        Helpful
                        Up
                        0
                        ::

                        @Robin – this script’s concept is about having a On Screen Display (OSD) that pops up when you use the keybindings to increase or decrease audio volume. Like Ile noticed, a similar goal could already be achieved using keybindings and the pre-existing yad-volume script.

                        Not quite, the hot hotkeys are only to show the widget, you use the arrow keys to increase or decrease the volume in 5 step interval.

                        #102351
                        Member
                        PPC
                          Helpful
                          Up
                          0
                          ::

                          the hot hotkeys are only to show the widget, you use the arrow keys to increase or decrease the volume in 5 step interval.

                          Hum… that seems unnecessarily complex. If you use Ctrl + Up or Ctrl + Down has “hot keys” to summon yad-volume (like in Ile’s example), those same keys make the OSD pop up AND control the volume in 5% intervals… the user just uses the same key combo

                          #102353
                          Member
                          Lead Farmer
                            Helpful
                            Up
                            0
                            ::

                            Hum… that seems unnecessarily complex. If you use Ctrl + Up or Ctrl + Down has “hot keys” to summon yad-volume (like in Ile’s example), those same keys make the OSD pop up AND control the volume in 5% intervals… the user just uses the same key combo

                            I add two hoykeys because it’s more convenient to just crtl+up or down to launch the widget and then just arrow keys to increase or decrease the volume, the hotkeys are not the point they are just to launch the widget, you can change it to any thing you like.

                            I didn’t test what @ile post, becouse I don’t think you can change the volume by moving the slider like mine douse, it’s just increase or decrease the volume by 5, and open the widget with the value.

                            edit:typo

                            • This reply was modified 1 month, 3 weeks ago by Lead Farmer.
                            • This reply was modified 1 month, 3 weeks ago by Lead Farmer.
                            • This reply was modified 1 month, 3 weeks ago by Lead Farmer.
                            #102476
                            Member
                            ile
                              Helpful
                              Up
                              0
                              ::

                              Hello Lead Farmer
                              trialed the v1.2 in a fluxbox wm, a single fluxbox-keys bindbound;
                              got the headphone icon to show,
                              Two hotkeys is redundant? sole; One hotkey opens it(?) ?

                              #102477
                              Member
                              Lead Farmer
                                Helpful
                                Up
                                0
                                ::

                                Hello Lead Farmer
                                trialed the v1.2 in a fluxbox wm, a single fluxbox-keys bindbound;
                                got the headphone icon to show,
                                Two hotkeys is redundant? sole; One hotkey opens it(?) ?

                                Hi ile

                                Thanks for the feedback, I guess two hotkeys that do the same thing is redacted but this is how I like it, you of course can change it how you like.

                                Please test 1.3 version I fixed a bug.

                                When you press the hotkey for the second time, it suppose to “remove” the volume indicator, before it didn’t work all the time.

                                Also can you check if everything work:
                                -Changing the volume with the slider.
                                -Arrow keys to change the volume.
                                -The headphone icon is showing when the headphone is plug, and the speaker icon is showing when the headphone is unplugged.

                                Thanks again

                                #102489
                                Member
                                olsztyn
                                  Helpful
                                  Up
                                  0
                                  ::

                                  Also can you check if everything work:
                                  -Changing the volume with the slider.
                                  -Arrow keys to change the volume.

                                  I have to admit I did not previously paid attention to this thread since I am not typically using IceWM. However I just flipped over to IceWM and installed this volume indicator for testing/evaluation purpose.
                                  Having just tested I have to say that it works very nicely. I do like it the way it works. When the time allows I will also test under JWM, reformatting the keys syntax of course, but it should work as well.
                                  Just to mention, on antiX 23, where I am testing, IceWM Settings to edit are no longer in the Control Center. So, instead the key file in ./icewm folder must be edited for mapping of keys.

                                  Thanks Lead Farmer! Very nice…

                                  Live antiX Boot Options (Previously posted by Xecure):
                                  https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

                                Viewing 15 posts - 1 through 15 (of 26 total)
                                • You must be logged in to reply to this topic.