You are not logged in.

#26 2011-12-24 01:35:08

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,753
Website

Re: Volnoti - Lightweight Volume Notification

Yes, I suppose mine was a bit hacked together just well enough to work for my circumstances.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Online

#27 2011-12-26 20:49:40

asusu
Member
From: Budapest
Registered: 2011-09-05
Posts: 2
Website

Re: Volnoti - Lightweight Volume Notification

Very nice! Works well with i3wm smile

$ i3 --version
i3 version 4.1.1 (2011-12-24, branch "master") © 2009-2011 Michael Stapelberg and contributors

Offline

#28 2011-12-27 11:05:00

ri
Member
Registered: 2008-10-09
Posts: 73

Re: Volnoti - Lightweight Volume Notification

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?)

Something like:

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.

Offline

#29 2012-06-10 01:29:26

Hspasta
Member
Registered: 2011-12-24
Posts: 187
Website

Re: Volnoti - Lightweight Volume Notification

Just want to say this little program is very useful and awesome. Was looking for something like this. smile

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)

Offline

#30 2012-11-13 02:29:03

hcchu
Member
Registered: 2012-11-13
Posts: 2

Re: Volnoti - Lightweight Volume Notification

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!

Offline

#31 2012-11-13 16:54:25

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 258

Re: Volnoti - Lightweight Volume Notification

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

Offline

#32 2012-12-15 07:15:36

WurdahMekanik
Member
From: Madison, WI
Registered: 2012-12-15
Posts: 6

Re: Volnoti - Lightweight Volume Notification

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.

Offline

#33 2012-12-19 21:30:37

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,077
Website

Re: Volnoti - Lightweight Volume Notification

@hcchu
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:
source=("http://github.com/downloads/davidbrazdil/volnoti/${pkgname}-${pkgver}.tar.gz")

Offline

#34 2012-12-23 22:39:46

hcchu
Member
Registered: 2012-11-13
Posts: 2

Re: Volnoti - Lightweight Volume Notification

teateawhy:

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
$ makepkg
$ pacman -U <package-name>.pkg.tar.xz

Offline

#35 2012-12-25 21:31:57

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,077
Website

Re: Volnoti - Lightweight Volume Notification

@hcchu
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.

Offline

#36 2013-06-12 04:14:20

Carl Karl
Member
Registered: 2013-06-12
Posts: 225

Re: Volnoti - Lightweight Volume Notification

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

PAMIXER="/usr/bin/pamixer"

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.)

Offline

#37 2013-06-12 09:35:02

Franek
Member
Registered: 2010-05-16
Posts: 97

Re: Volnoti - Lightweight Volume Notification

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).

Offline

#38 2013-06-12 11:20:33

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,753
Website

Re: Volnoti - Lightweight Volume Notification

Franek, do you have librsvg installed?  If not it may be a unlisted dependency.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Online

#39 2013-06-12 11:25:39

Franek
Member
Registered: 2010-05-16
Posts: 97

Re: Volnoti - Lightweight Volume Notification

I did have librsvg installed, but I reinstalled it anyway and volnoti works now. Weird. Thanks!

Offline

#40 2013-06-12 11:31:35

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,753
Website

Re: Volnoti - Lightweight Volume Notification

Eh, that suggests that there is a deeper issue.  Have you run a full update recently?


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Online

#41 2013-06-12 11:49:31

Franek
Member
Registered: 2010-05-16
Posts: 97

Re: Volnoti - Lightweight Volume Notification

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.

Offline

#42 2013-06-12 14:30:16

Carl Karl
Member
Registered: 2013-06-12
Posts: 225

Re: Volnoti - Lightweight Volume Notification

One 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

and now?
(apart from a reboot that will probably "solve" this problem?)

Offline

#43 2014-01-11 05:58:27

pluto9
Member
Registered: 2012-04-08
Posts: 3

Re: Volnoti - Lightweight Volume Notification

I updated Trilby's script.

https://gist.github.com/sean-kang/8367578

Offline

#44 2014-06-26 05:44:04

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Volnoti - Lightweight Volume Notification

Has someone figured out how to exclude the OSD notification from compton shadows? On my system it produces ugly white edges.

VJ9zu8J.jpg

EDIT

Solved by adding the following to ~/.compton.conf:

shadow-exclude = [                                                                     
    "class_g = 'Volnoti'",                                                                          
    ]     

Last edited by orschiro (2014-06-26 09:28:24)

Offline

#45 2015-01-23 10:26:41

morfik
Member
Registered: 2013-03-14
Posts: 22
Website

Re: Volnoti - Lightweight Volume Notification

Is there a way to make the background a little bit darker?

Offline

#46 2016-01-04 12:18:38

esa
Member
Registered: 2011-12-29
Posts: 143
Website

Re: Volnoti - Lightweight Volume Notification

@ 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?


Author of: TUI (Text User Interface for scripts), VHS (Video Handler Script, using ffmpeg) and YASSI (Yet Another Simple Script Installer)

Offline

#47 2016-11-09 10:26:43

nesk
Member
Registered: 2011-03-31
Posts: 62

Re: Volnoti - Lightweight Volume Notification

esa wrote:

@ 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?

You might have volnoti already running, it's a confusing error message: https://github.com/davidbrazdil/volnoti/issues/6

Offline

Board footer

Powered by FluxBB