You are not logged in.

#1 2010-12-26 04:23:02

triumphguy
Member
From: Alabama, USA
Registered: 2010-12-26
Posts: 31

[SOLVED] Volume Meter Pop Up

I've been using Arch for about a week.  Worked through most issues with the GREAT WIKI !!!

I have my volume up down and mute buttons working.  However, I would like a pop up meter showing the changes in volume as I increment the volume.  I'm using XFCE as my DE.

Thanks In Advance for any replies

Ronnie

Last edited by triumphguy (2010-12-27 00:01:52)

Offline

#2 2010-12-26 07:26:48

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] Volume Meter Pop Up

Xfce-mixer provides a panel plugin. It might display the volume as you change it via keys. The package is in [extra] so you can install it with "pacman -S xfce4-mixer".


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2010-12-26 07:39:45

ViruSzZ
Member
From: The Streets
Registered: 2010-10-14
Posts: 202
Website

Re: [SOLVED] Volume Meter Pop Up

Yes, xfce-mixer provides a volume icon meter, but for some reason I can not get a pop-up-notification when I change the volume via keys on my Xfce setup as well. Brightness or music player notifications are working just fine. It is not a big deal, but if it can be enabled it would be great.

Respect


Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog

Offline

#4 2010-12-26 07:42:45

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] Volume Meter Pop Up

@ViruSzZ
I didn't know. I just thought it was worth a shot. Others must have requested such a pop-up for Xfce-mixer so maybe there's a (hidden) option or a patch somewhere.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2010-12-26 07:51:22

ViruSzZ
Member
From: The Streets
Registered: 2010-10-14
Posts: 202
Website

Re: [SOLVED] Volume Meter Pop Up

I wonder if this https://bugs.archlinux.org/task/21752 is somehow related to this. As I can remember, I downgraded to ver 0.4.5-1.1 in order to get the notifications working back. As for the option, I really did not find any but any thoughts are always welcome and appreciated ..

Respect, take care ....


Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog

Offline

#6 2010-12-26 09:10:59

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED] Volume Meter Pop Up

I don't think the notify-send problem causes Xfce-mixer not to show volume changes in a popup... Because it never did here.

I change volume using the mouse wheel on top of Xfce-mixer's icon in the panel... The icon represents the current volume (in a rather imprecise way), and there also is a popup with the percentage value when the pointer is left on top of it, which is enough for me.

I'm assuming that by "volume up down and mute buttons" the OP means multimedia keys on his keyboard. If so, maybe changing the Keyboard shortcuts in Xfce settings to launch a self-made script that changes volume and displays the new value would work. (Unfortunately, with notify-send not working, some other way of showing the value would be needed.)

Offline

#7 2010-12-26 09:19:00

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

Re: [SOLVED] Volume Meter Pop Up

What about using "Keytouch"?
I used it in the past and it had a volume pop-up notification.

Offline

#8 2010-12-26 13:01:30

BaconPie
Member
Registered: 2010-08-11
Posts: 209

Re: [SOLVED] Volume Meter Pop Up

I've been using the volume script vol.sh since it was posted somewhere in the code section of this forum. Can't find the post so I'll just dump the script here:

$less ~/bin/vol.sh
#!/bin/sh

usage="usage: $0 -c {up|down|mute} [-i increment] [-m mixer]"
command=
increment=5%
mixer=Master

while getopts i:m:h o
do case "$o" in
    i) increment=$OPTARG;;
    m) mixer=$OPTARG;;
    h) echo "$usage"; exit 0;;
    ?) echo "$usage"; exit 0;;
esac
done

shift $(($OPTIND - 1))
command=$1

if [ "$command" = "" ]; then
    echo "usage: $0 {up|down|mute} [increment]"
    exit 0;
fi

display_volume=0

if [ "$command" = "up" ]; then
    display_volume=$(amixer set $mixer $increment+ unmute | grep -m 1 "%]" | cut -d "[" -f2|cut -d "%" -f1)
fi

if [ "$command" = "down" ]; then
    display_volume=$(amixer set $mixer $increment- unmute | grep -m 1 "%]" | cut -d "[" -f2|cut -d "%" -f1)
fi

icon_name=""

if [ "$command" = "mute" ]; then
    if amixer get Master | grep "\[on\]"; then
        display_volume=0
        icon_name="notification-audio-volume-muted"
        amixer set $mixer mute
    else
        display_volume=$(amixer set $mixer unmute | grep -m 1 "%]" | cut -d "[" -f2|cut -d "%" -f1)
    fi
fi

if [ "$icon_name" = "" ]; then
    if [ "$display_volume" = "0" ]; then
        icon_name="notification-audio-volume-off"
    else
        if [ "$display_volume" -lt "33" ]; then
            icon_name="notification-audio-volume-low"
        else
            if [ "$display_volume" -lt "67" ]; then
                icon_name="notification-audio-volume-medium"
            else
                icon_name="notification-audio-volume-high"
            fi
        fi
    fi
fi
notify-send " " -i $icon_name -h int:value:$display_volume -h string:synchronous:volume

It uses notify-send, so make sure that's working first.

Last edited by BaconPie (2010-12-26 13:01:49)

Offline

#9 2010-12-26 13:46:20

ViruSzZ
Member
From: The Streets
Registered: 2010-10-14
Posts: 202
Website

Re: [SOLVED] Volume Meter Pop Up

Thanks for that ... I'm at work now so can't see if that works ... I'll be home in less than 2 hours and will check this ... Respect


Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog

Offline

#10 2010-12-26 15:49:46

ViruSzZ
Member
From: The Streets
Registered: 2010-10-14
Posts: 202
Website

Re: [SOLVED] Volume Meter Pop Up

Everything is running smooth now (:

@triumphguy, did you manage to get it working? If yes, then we can mark this as SOLVED ....

Peace & Respect Archers


Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog

Offline

#11 2010-12-27 00:01:23

triumphguy
Member
From: Alabama, USA
Registered: 2010-12-26
Posts: 31

Re: [SOLVED] Volume Meter Pop Up

Thanks for the feedback.  I'll mark it SOLVED now.

Offline

#12 2012-02-11 13:32:28

kwevej
Member
Registered: 2011-06-23
Posts: 12

Re: [SOLVED] Volume Meter Pop Up

I wonder why no-one mentioned xfce4-volumed  which is avail in AUR.
No need to hassle with scripts.

Last edited by kwevej (2012-02-11 13:32:52)

Offline

#13 2014-01-04 11:26:28

justin-8
Member
From: Queensland, Australia
Registered: 2013-06-18
Posts: 53

Re: [SOLVED] Volume Meter Pop Up

I hate to resurrect old threads, but this shows up for every search for this problem.

The reason to not use xfce4-volumed is that it has stopped all development in 2011. It also did not appear to work for me. (could be that I'm using pulseaudio? I have no intentions of using pure alsa and did not test it)

The script provided requires notify-osd and won't work with other notification daemons. I've rewritten it to work with pulseaudio and to just require the id-patched version of libnotify (libnotify-id or libnotify-id-git on the AUR) so that it works with things like xfce4-notifyd or your notification daemon of choice.

It's available here:
https://github.com/justin8/dotfiles/blo … bin/volume

Offline

Board footer

Powered by FluxBB