pmvol - volume-tray-thing gtk1&gtk2

Audio editors, music players, video players, burning software, etc.
Post Reply
Message
Author
goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

pmvol - volume-tray-thing gtk1&gtk2

#1 Post by goingnuts »

Based on code snippets from absvolume and blinky here is a tray-volume applet that can be compiled to use gtk1 or gtk2.
Mouse leftclick brings up the volume slider - click on trayicon to minimize it again.
Right mouse click opens xmixer - if xmixer is missing symlink your favorite mixer to "xmixer".

Thanks to amigo for doing the hard work getting configure running!

To have it swallowed by jwm add

Code: Select all

<Swallow name="pmvol">
pmvol
</Swallow>
to /root/.jwmrc-tray

Update 2015-04-01: Version 0.3 released
* Revised configure.
* Bugfix: if volume 0 not image was shown.
* Close slider when focus-out.
* Added tooltip showing actual volume when mouse over tray icon.
Attachments
pmvol-0.3.tar.gz
source
(88.76 KiB) Downloaded 282 times
pmvol-0.2.tar.gz
source code
(97.86 KiB) Downloaded 431 times
Last edited by goingnuts on Mon 13 Apr 2015, 16:23, edited 3 times in total.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#2 Post by Karl Godt »

The pre-compiled gtk1 works for me .

Unfortunately I had the problem , that I needed retrovol to activate the front audio-out-jack named "Headphones" to gain sound .

Has anyone an idea how to activate them by the cli ?

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#3 Post by disciple »

You can probably use amixer.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#4 Post by goingnuts »

Karl Godt: Thx for testing!
I use aumix as it can run from cli or GUI (gtk1). To set values from cli or startup script:

Code: Select all

aumix -v 75%				#main volume
aumix -b 0%	>/dev/null 2>&1	#bass
aumix -t 0%	>/dev/null 2>&1	#treble
aumix -s 0%	>/dev/null 2>&1	#synthesizer
aumix -w 90%				#PCM
aumix -p 90%				#PC speaker
aumix -l 90%				#line
aumix -m 0% >/dev/null 2>&1	#microphone
aumix -c 90% >/dev/null 2>&1	#CD
aumix -x 0%					#mix monitor
aumix -W 0%					#PCM 2
aumix -r 0%					#record
aumix -i 0%					#input gain
aumix -o 0%					#output gain
aumix -1 90%				#line 1
aumix -2 90%				#line 2
aumix -3 90%				#line 3
The settings can be loaded from a file as well:

Code: Select all

aumix -L -f /root/.aumixrc >/dev/null 2>&1

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#5 Post by goingnuts »

New release - view first post.

Pelo

Two pets please ...

#6 Post by Pelo »

compile, users don'kt know to compile. we hardly speak english, Could you make us two pets please.

Pelo

Two pets please ...

#7 Post by Pelo »

compile, users don'kt know to compile. we hardly speak english, Could you make us two pets please.

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#8 Post by goingnuts »

OK - attached pet for gtk2-version and the gtk1-version can be downloaded here.
Attachments
pmvol-0.3.pet
(6.15 KiB) Downloaded 211 times

Post Reply