 |
Puppy Linux Discussion Forum Puppy home page: puppylinux.com
|
The time now is Thu 29 Jul 2010, 13:12
All times are UTC - 4 |
|
Page 1 of 5 Posts_count |
Goto page: 1, 2, 3, 4, 5 Next |
| Author |
Message |
Pizzasgood

Joined: 04 May 2005 Posts: 6150 Location: Side of a mountain, USA (EST/GMT-5)
|
Posted: Thu 31 Dec 2009, 18:36 Post_subject:
Retrovol 0.8 (Volume mixer) Sub_title: A volume mixer that lets you scroll on the tray-icon, and has nice sliders. |
|
retrovol-0.8.pet
source code
svn repo
When you run it, it adds an icon to the tray. If you left click on it, it will pop up a slider which should be bound to the "Master" volume control, like the one currently in Puppy.
You can also scroll on the icon to manipulate the volume without having to click on anything.
If you middle-click, it will toggle the mute status.
If you right-click, it will show a menu with options to exit, configure, or open the main window. You can also re-run retrovol while it's already running to open the main window. In the main window you can see all the active controls (which is everything it can find by default). You can also go to File->Configure and adjust things like colors, dimensions, etc., along with choosing precisely which sliders to have it show and which order to display them.
Those settings will be stored in the ~/.retrovolrc file, in case you want to go in and change them manually.
Like Alsamixer, Retrovol doesn't so much let you modify the balance as adjust the left and right volumes independently. This is done by holding either the Shift key or the Ctrl key and then doing normal actions like scrolling or clicking a slider. Ctrl will allow you to only modify the left channel, and Shift will allow you to only modify the right channel. The slider will update on the side corresponding the the channel being modified.
There are still some things left to do. In particular, it is currently hardcoded to use the first soundcard, so if you have more than one that you want to use, you're out of luck for now. I also want to make it have multiple profiles of sliders shown, like alsamixer does. And I want to add the option to use gradient colorschemes in the sliders. Another thing is that it's not quite as easy as I'd like to use it without a mouse, so I plan to improve that a bit too.
But it otherwise works great.
If you want to replace absvolume with this, all you have to do (at least in Puppy 4.2) is edit /root/.xinitrc and replace the code that looks like this:
| Code: | if [ -f /usr/bin/absvolume ];then
if [ "$MENU_BG" = "" ];then
absvolume &
else
absvolume -bg $MENU_BG &
fi
fi |
with this:
| Code: | if [ "$(which retrovol)" != "" ];then
if [ "$MENU_BG" = "" ];then
retrovol -hide &
else
retrovol -hide -bg "$MENU_BG" &
fi
fi |
That way it will automatically be given the correct -bg option to match your JWM theme if you're not using the standard GTK color.
2010.01.16: Updated to 0.2
2010.03.09: Updated to 0.3
2010.03.09: Updated to 0.4
2010.04.08: Updated to 0.5
2010.05.02: Updated to 0.6
2010.05.16: Updated to 0.7
2010.06.06: Updated to 0.8
| Description |
|
| Filesize |
11.94 KB |
| Viewed |
2228 Time(s) |

|
| Description |
|
| Filesize |
18.12 KB |
| Viewed |
2228 Time(s) |

|
_________________ Have you heard the joke about the man who omits the punchline?

Edited_times_total
|
|
Back to top
|
|
 |
jemimah

Joined: 26 Aug 2009 Posts: 2200 Location: Tampa, FL/McLean, VA
|
Posted: Fri 01 Jan 2010, 17:16 Post_subject:
|
|
This is awesome! It actually detects which mixer interfaces you have. I will put it it Puppeee straight away!
One minor quip, the mixer window doesn't resize if you have too many interfaces to fit.
| Description |
|
| Filesize |
24.18 KB |
| Viewed |
2123 Time(s) |

|
|
|
Back to top
|
|
 |
magerlab
Joined: 08 Jul 2007 Posts: 653
|
Posted: Fri 01 Jan 2010, 17:24 Post_subject:
|
|
there is Configure option in File dropdown menu and it's possible to set window size and active channels
very nice app
_________________ skype: desafimager
Teaching Puppy bark Russian!
new advanced vesrsions of puppyRus
http://puppyrus.org
|
|
Back to top
|
|
 |
trapster

Joined: 28 Nov 2005 Posts: 1728 Location: Maine, USA
|
Posted: Fri 01 Jan 2010, 20:05 Post_subject:
|
|
Sweeeet. Awesome
_________________ trapster
Maine, USA
Asus eeepc 1005HA PU1X-BK
Frugal install:Puppeee4.31, Puppy3.0 Retro, Puppy4.10, Slitaz
Currently using Puppeee4.31 w/ wmii
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 5609 Location: Perenjori, Western Australia
|
Posted: Fri 08 Jan 2010, 19:36 Post_subject:
|
|
Pizzasgood,
Really nice!
I posted about Retrovol on my blog:
http://bkhome.org/blog/?viewDetailed=01325
I also made a request, quoted here:
| Quote: | | I would like to make a request. Could you add a commandline option to bring up the mixer immediately -- and it would have to run with some other name than "retrovol" so that it doesn't get swallowed by the JWM tray. That would be really neat, then I can have a menu entry for the mixer. |
_________________ http://www.puppylinux.com/blog/
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6150 Location: Side of a mountain, USA (EST/GMT-5)
|
Posted: Sat 09 Jan 2010, 02:48 Post_subject:
|
|
Alright, will-do. I've been intending to do something like that anyway. Actually, I was thinking of setting it up so that instead of running another instance it would just activate the main window's visibility (which is all that happens when you right-click the icon). Then there wouldn't be an issue with names.
I'm on the final stretch of my vacation ATM and will be spending tomorrow on a bus, so I might not get to it until sometime next week. Probably Tuesday.
Glad to see people like it.
_________________ Have you heard the joke about the man who omits the punchline?

|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 4230 Location: Auckland, New Zealand
|
Posted: Sun 10 Jan 2010, 05:21 Post_subject:
|
|
Almost what I always wanted
Thanks so much.
There seems to be a bug in the window size configuration. e.g. I have specified a size of 459x179, but the resulting window is 411x85.
You might like to consider adding the ability to toggle between showing all the controls and just showing the ones selected in the Hardware tab... although maybe a better approach would be to have the ability to switch between multiple profiles.
_________________ Root forever! (Link courtesy of Nathan F)
"I would be pointing the finger at gtk2...the source of all bugginess" - mikeb
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6150 Location: Side of a mountain, USA (EST/GMT-5)
|
Posted: Sun 10 Jan 2010, 13:45 Post_subject:
|
|
Yeah, that's on my todo list too. I want to add something like alsamixer has, to show all input, all output, or both, plus a fourth choice that uses the user's custom settings.
I'll have to take a look at the window size code. It's been a while since I wrote it, so maybe something broke.
_________________ Have you heard the joke about the man who omits the punchline?

|
|
Back to top
|
|
 |
HairyWill

Joined: 26 May 2006 Posts: 2949 Location: Southampton, UK
|
Posted: Mon 11 Jan 2010, 00:01 Post_subject:
|
|
It works for me, very nice. I see that you allow the user complete control over the colours. As you are using gtk anyway, how about an option to just use the gtk theme colours?
_________________ Will
contribute: community website, screenshots, puplets, wiki, rss
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6150 Location: Side of a mountain, USA (EST/GMT-5)
|
Posted: Mon 11 Jan 2010, 00:48 Post_subject:
|
|
Aye aye cap'n!
_________________ Have you heard the joke about the man who omits the punchline?

|
|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 1196 Location: West Lothian, Scotland, UK
|
Posted: Mon 11 Jan 2010, 06:06 Post_subject:
|
|
Downloaded the pet file and checked it was OK using verifypet.
Installed retrovol-0.1 in BoxPup-413-k2.6.25.16
Installation seemed to go well.
Used "Ctrl+Alt+backspace->xwin" to restart window manager.
Saw no sign of retrovol.
Opened a terminal, entered the command retrovol and got the result shown in the screenshot below.
| Description |
|
| Filesize |
12.97 KB |
| Viewed |
1823 Time(s) |

|
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6150 Location: Side of a mountain, USA (EST/GMT-5)
|
Posted: Tue 12 Jan 2010, 21:16 Post_subject:
|
|
It doesn't automatically set itself up to autostart (nor disable absvolume, the one that Puppy ships with). If you go back to my first post, I gave instructions on how to adjust the /root/.xinitrc script. It's an easy cut and paste job.
The output you paste is fine: it looked to see if you had a configuration file, couldn't find it, and told you that it would use the defaults instead. Then it merrily ran. If you look in the system tray at that point, you should see it there.
Normally it would be run from the .xinitrc script as X starts, with an ampersand after it so that it runs in the background. That's what my instructions help you set up.
Alternately, you could probably symlink the binary into /root/Startup/, and then just edit .xinitrc to not run absvolume (since that would be redundant).
I'm going to have to delay working on Retrovol for a couple days. I severely underestimated how much work it's going to take to get back up to speed in Japanese. After I got out of my first Japanese class in a year and a half, I felt the need to reallocate the time I was going to spend coding to instead spend it studying frantically and kicking myself in the rear for not studying harder over break.
I'll work on Retrovol some more this weekend.
_________________ Have you heard the joke about the man who omits the punchline?

|
|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 1196 Location: West Lothian, Scotland, UK
|
Posted: Wed 13 Jan 2010, 06:15 Post_subject:
|
|
1. "I gave instructions on how to adjust the /root/.xinitrc script. It's an easy cut and paste job"
Too hurried, failed to notice that.
I'm running BoxPup-413, and the /root/.xinitrc file doesn't have that code to replace.
Here's all it has on absvolume [beginning on line 106]:
| Code: | absvolume -u 1000 &
[ -e /root/.clip_on ] && parcellite &
sleep 0.5 |
Should I replace that with your code?
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6150 Location: Side of a mountain, USA (EST/GMT-5)
|
Posted: Wed 13 Jan 2010, 19:35 Post_subject:
|
|
Yeah, but only the first line. The other two are something else, so leave them in.
_________________ Have you heard the joke about the man who omits the punchline?

|
|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 1196 Location: West Lothian, Scotland, UK
|
Posted: Thu 14 Jan 2010, 02:30 Post_subject:
|
|
Did as instructed; the program appears to be now working well.
|
|
Back to top
|
|
 |
|
|
Page 1 of 5 Posts_count |
Goto page: 1, 2, 3, 4, 5 Next |
|
|
Rules_post_cannot Rules_reply_cannot Rules_edit_cannot Rules_delete_cannot Rules_vote_cannot You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|