How to get volume level indicator on screen

Forum Forums New users New Users and General Questions How to get volume level indicator on screen

Tagged: 

  • This topic has 19 replies, 8 voices, and was last updated Dec 17-3:52 pm by BobC.
Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #95656
    Member
    carugnom

      Hi there!

      I’ve noticed that keys to increase and decrease audio volume work, but I can’t see any indicator on the screen showing the volume level as it increases/decreases.
      I think it would be good to have that feature, and most desktops have it.
      Is there a way to set this up with some tool and configuration ?
      Thanks !

      #95663
      Member
      iznit
        Helpful
        Up
        0
        ::

        The program “volumeicon” should already be (pre)installed and ((( at least in “antix full” version ))) your desktop-session “startup” should by default contain a line stating
        volumeicon &
        so that its icon automatically appears in the taskbar at the start of each desktop login session. It works with any of the JWM and icewm and fluxbox desktops….. so it’s puzzling that you are not already seeing it in your taskbar.

        and configuration

        config directory under your user home directory should have a config file named “volumeicon”. To change the icon size and keybinds etc., you can edit the declared values in this file.

        #95664
        Member
        carugnom
          Helpful
          Up
          0
          ::

          Thank you for the quick answer, but I don’t talk about the icon in the taskbar (which I can see and use)
          I refer to the osd progress bar of the volume level
          On desktops like Kde, Gnome or Xfce, when you press the keyboard increase/decrease volume keys, you see a visual feedback of the volume level (usually on the top right corner)

          #95669
          Forum Admin
          anticapitalista
            Helpful
            Up
            0
            ::

            antiX does not use a desktop environment.

            Philosophers have interpreted the world in many ways; the point is to change it.

            antiX with runit - leaner and meaner.

            #95675
            Member
            iznit
              Helpful
              Up
              0
              ::

              carugnom, you can use a scripted solution accomplish an On-ScreenDisplay for the volume in numerous ways.

              Here’s one ((( not the simplest, but visually appealing )))
              sudo apt install libaosd2 libaosd-text2
              then use the script shown here ((( might not work properly without modification, I did not test )))
              https://how-to.fandom.com/wiki/Howto_show_volume_in_Linux_with_On-Screen_Display

              Otherwise you could change the command bound to volUp and volDown in your ~/.icewm/keys file. Write tiny bash scripts to run the notify-send command prior to performing the volUp/Down actions and call these scripts in the keys file instead of directly performing the actions.

              yad for the OSD notification instead of notify-send is another possibility.

              #95682
              Moderator
              caprea
                Helpful
                Up
                0
                ::

                You could try the icon theme “Blue Bar” in the preferences of volume icon. (Right click on the volume icon > preferences > Icon Theme > Blue Bar, or in the config file theme=Blue Bar)

                #95683
                Member
                ile
                  Helpful
                  Up
                  0
                  ::

                  Blue Bar.
                  I tried to click the helpful button on caprea post. it did not register helpful.

                  Blue Bar icon in volume-icon.

                  the big box is command = alsamixer.
                  command = yad-volume
                  will work with mouse, but loses focus with keypress of multimedia keyboard press.

                  #95687
                  Moderator
                  BobC
                    Helpful
                    Up
                    1
                    ::

                    Or if you don’t mind it using 13 mb of memory install pnmixer from the repos and replace volumeicon in User Desktop Session startup with it.

                    There are also other icon sets available for it, I read.

                    #95703
                    Member
                    ile
                      Helpful
                      Up
                      0
                      ::

                      tried pnmixer, Notifications >checkmark External Change does what carugnom wants of the notifier.
                      I pressed on Your Helpful button a bunch of times BobC.

                      found notifier volume named xob. is it systemd? Go version? can we trial xob?

                      then played with package <wmmixer> is a semi-fulltime monitor volume indicator visual plus interact, clicking or scrolling on it changes loudness. multi in,output, like a mini alsa, it registers keyboard volume adjust. semi, because it can be hidden in the slit or can be minimized as a window iconified.
                      #1 wmmixer = window
                      #2 wmmixer –withdrawn = dockapp
                      #3 wmmixer -a = ask for smaller window
                      interesting results:
                      fluxbox 1, silver background. 2, in the slit with system colors. 3, window with clear background.
                      jwm . . 1, silver background. 2, window with clear background. 3, window with clear background.
                      icewm . 1, will not start it in icewm; starting it in jwm or fluxbox then switching desktops to icewm will not bring 1 to icewm. 2, does not start in icewm. start wmmixer withdrawn(2) in fluxbox and switch desktops to icewm yes it does bring it to icewm as a small frameless window with clear background that can move. start 2 in icewm,cannot see it, then switch to fluxbox will bring the withdrawn window to fluxbox that was not seen in icewm. switch back to icewm there it is seen. 3, starts normal size frameless clear background window can move. undecorated transparent is pretty-cool.

                      so it works on the three Desktop menu choices.

                      #95707
                      Member
                      PPC
                        Helpful
                        Up
                        0
                        ::

                        I never thought anyone would think of using yad-volume as OSD for using volume keys, when I created it. If I have the chance, maybe I try my hand at adapting it for that porpoise. I tried, a while back, for some reason, to have OSD for volume keys, I tried using system notifications (notify-send) added to the volume keys in the keys file for the Window Manager.- if anyone wants to go that route, you’ll have to enable system notifications, installing Dunst (available in the repo and in Package Installer).

                        Untested low tech idea, that uses system notifications as OSD, would be something along this lines (probably it’s best using a script, instead of strings of commands):

                        key "XF86AudioLowerVolume"	amixer sset Master 5%- && volume=$(amixer -M get Master | awk -v FS="[[%]" '/%/ {print $2}') && notify-send $volume
                        key "XF86AudioRaiseVolume"	amixer sset Master 5%+  && volume=$(amixer -M get Master | awk -v FS="[[%]" '/%/ {print $2}') && notify-send $volume

                        Edit: another good suggestion is using “herbe” to display the notifications: you can see how to install it here: https://github.com/dudik/herbe. The nice thing about herbe is that you can easily force it to close the previous notification and display a new one, instead of pilling up notifications. Example: pkill herbe & herbe “Vol: $vol”

                        Trying mixing several of the ideas here in this thread will probably get you the outcome you want. If it was me, I would simply use volumeicon and keep my eye in it’s icon (that show if the volume is muted, low, medium, high), but I don’t nitpick about volume…

                        P.

                        • This reply was modified 4 months, 3 weeks ago by PPC.
                        • This reply was modified 4 months, 3 weeks ago by PPC.
                        #95723
                        Member
                        techore
                          Helpful
                          Up
                          0
                          ::

                          If interested in herbe, dunst is an alternative.

                          I use notify-send and dunst for similar purposes, but for volume and backlight brightness, I use dwmblocks. It’s a customization wandering far a field from antiX base/full and more in the realm of antiX core. Happy to share details if interested.

                          #95727
                          Moderator
                          BobC
                            Helpful
                            Up
                            0
                            ::

                            I wonder if volumeicon which is already included could efficiently (ie not get huge or need lots more memory) be taught to use different icons depending on mute status or volume level?

                            #95729
                            Member
                            PPC
                              Helpful
                              Up
                              0
                              ::

                              I wonder if volumeicon which is already included could efficiently (ie not get huge or need lots more memory) be taught to use different icons depending on mute status or volume level?

                              It already does that, in my antiX 19 (I never use it, I poped it open just to test it)- see my previous post, Bob… It could be more precise (displaying the volume percentage)- it changes it’s icon displaying mute/low/middle/high… You can right click it > preferences > Set an easier to see icon Theme- like “white gnome”

                              P.

                              #95732
                              Moderator
                              BobC
                                Helpful
                                Up
                                0
                                ::

                                @carugnom Are you running the rox-icewm default desktop?

                                Go look at the bottom on the taskbar way to the right… Look to the left of the battery indicator or network monitor and see if you can barely see a little speaker icon there? Right click the little speaker, then left click preferences, then left click Icon theme, pulldown arrow, and left click Black Gnome Inverted.

                                Can you see a speaker icon now?
                                If you raise and lower the volume can you see the icon change?

                                #95751
                                Member
                                ile
                                  Helpful
                                  Up
                                  0
                                  ::

                                  hello carugnom and everyone
                                  pnmixer is what you described on your wish list. how is that working out for You?

                                  chat.
                                  Playback loudness in conky
                                  bar 1-100, digits over 100;101- ? the Limits?
                                  machine here is 1-127 so filled that reminder in text. change to your value(?)
                                  for digits only, for no bar change execbar to exec.

                                  Playback loudness 1-127
                                  ${execbar amixer get Master |gawk '/Mono:/ {print $3}' } 

                                  to find the Limits
                                  amixer get Master |grep Limits:

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