Very nice! Works well with i3wm
$ i3 --version i3 version 4.1.1 (2011-12-24, branch "master") © 2009-2011 Michael Stapelberg and contributors
Just a quick thought; adding an option to chose icon with an argument would simply turn this into a brightness indicator aswell. Since Volnoti itselfs has nothing to do with volume except from the icon (am I correct here?)
volnoti-show --icon=/path/to/brightness/icon.svg 80 volnoti-show --icon=/path/to/sound/icon.svg 30
And then let the script handle the rest as usual.
Just want to say this little program is very useful and awesome. Was looking for something like this.
Actually I agree with the guy above me. This can be used for more than just volume.
Last edited by Hspasta (2012-06-10 03:39:21)
Thanks David for a great program! It's one of the best-looking osd notification programs I've found.
Like a lot of you, I wanted to use it for more than just volume so I decided to scratch my own itch. I've added the ability to specify different icons, and also hide the progressbar:
Usage: volnoti-show [-hnm] [-0 <image>] [-1 <image>] [-2 <image>] [-3 <image>] [-4 <image>] <value> -h --help help -v --verbose verbose -n --nobar do not display progress bar -m --mute muted Icon options: -0 --mute-icon change mute icon -1 --off-icon change off icon -2 --low-icon change low icon -3 --med-icon change medium icon -4 --high-icon change high icon -s --single-icon use same icon for all values <value> int 0-100 If "-m" is invoked, <value> is ignored. Icon options can be individually called and expect a full path the the image. Volume images will be used if icon images are unspecified
For example, I run the following to increase brightness (icon doesn't change based on values):
volnoti-show -s "/usr/share/pixmaps/volnoti/display-brightness-symbolic.svg" `xbacklight -inc 7; xbacklight`
and when cd/dvd is ejected:
volnoti-show -n -m -0 "/usr/share/pixmaps/volnoti/media-eject/symbolic.svg"
I've only tested this on a couple of systems, but the changes are minor so if volnoti compiled for you before, this version should compile also with no issues. Also, my C knowledge is *extremely* limited, so fair warning.. it works fine for me though, and the changes are minor. I haven't created a package or anything, but it should be easy to compile following the instructions on the wiki. You can get the source code from: http://github.com/hcchu/volnoti
Hope someone finds this useful!
Just discovered this today - lovely! Is it still maintained? hcchu's ideas/changes could be incorporated.
i7 4790K 4.4GHz, ASRock Z97 Extreme6, 16GB 2400MHz, GTX 970, Arch x86_64
Also just found this... love it, but would like to know how to change the transparency and maybe size of the popup. The README and "--help" didn't seem to provide much info.
Your addition to volnoti is a good idea. I would like to try it, but i do not know how to build a package. Do you think it is possible to change the PKGBUILD to point to you github page? I think of changing this line:
I've updated the PKGBUILD in my repository to download the source from there as well.. building the package using that will work.
Here are the steps:
$ wget https://raw.github.com/hcchu/volnoti/ma … h/PKGBUILD
$ pacman -U <package-name>.pkg.tar.xz
Thanks, this works for displaying brightness with the following script. I still have to find the source for different brightness icons.
#!/bin/bash BRIGHTNESS=$(</sys/class/backlight/acpi_video0/brightness) PERCENT=$(echo "$BRIGHTNESS*100/15" | bc) volnoti-show -s /usr/share/pixmaps/volnoti/display-brightness-symbolic.svg $PERCENT
Also the old volume script from this thread still works with the new branch.
Thank you for Volnoti, very useful! My XFCE gave me no notification before.
Just two remarks:
1. in the volume_pulse_audio.sh script, I had to change the path to
2. to get acustic feedback as well, I added
padsp play /usr/share/sounds/gnome/default/alerts/drip.ogg
. (the file is provided by Gnome an the command by sox from AUR.)
I just gave volnoti a try (installed from AUR), but the daemon fails to run:
$ volnoti --verbose Connecting to D-Bus... OK Getting proxy... OK Registering the service... OK Preparing data...ERROR: Couldn't load volume_high.svg. (Couldn't recognize the image file format for file '/usr/share/pixmaps/volnoti/volume_high.svg')
The file mentioned is present in the file system and does not seem to be corrupted (looks fine in inkscape).
I did have librsvg installed, but I reinstalled it anyway and volnoti works now. Weird. Thanks!
Yes, I only do full system upgrades, the last of which was on 2013-06-06. I don't think I want to dig deeper here and just trust/hope that it was a one-time problem.
After attaching something to my headphones output and removing it again, I only get the "mute" symbol (although it's not muted) and the volume doesn't change either:
$ volume_pulse_audio.sh down Connection error Connection error Connection error Connection error
The reason is pamixer doesn't work anymore:
$ pamixer --increase 5 Connection error
(apart from a reboot that will probably "solve" this problem?)
I updated Trilby's script.
Has someone figured out how to exclude the OSD notification from compton shadows? On my system it produces ugly white edges.
Solved by adding the following to ~/.compton.conf:
shadow-exclude = [ "class_g = 'Volnoti'", ]
Last edited by orschiro (2014-06-26 09:28:24)
Is there a way to make the background a little bit darker?
@ Morfik: Make it less transparent.
Anyone having luck compiling volnoti? As I'm getting glib error doing so (from the github code)
README doesnt say anything about packages it requires to compile successfully.
README says there was an AUR package at: https://aur.archlinux.org/packages.php?ID=55159 --> 404.
However, found it at: https://aur.archlinux.org/packages/volnoti/
While that one builds fine, i cant get it daemonized..
Registering the service...ERROR: Failed to get the primary well-known name. (RequestName result != 1)
Not knowing C#/C++ well enough, to me it seems an issue with reckognizing dbus? (daemon.c:254)
Any ideas please?