| Author |
Message |
rarsa

Joined: 29 May 2005 Posts: 3053 Location: Kitchener, Ontario, Canada
|
Posted: Sat 27 May 2006, 03:18 Post subject:
Tray Volume selector - Updated Mar 2007! |
|
Here is a volume Selector that shows in the JWM tray
This mini-app is a must. It will download in 10 seconds even on dial-up. Just 6 K.
It's the perfect addition to the gplaycd-mini
You can configure it in /root/.jwmrc-tray. Right now it can receive the following parameters
-orientation [ vertical | horizontal ]
-mixer <mixer application>
-bg color
For a list of valid colours read this
for example
| Code: | | mini-volume.tcl -o horizontal -m pvolume-mixer.tcl -bg lightblue |
If no parameters are passed, it shows vertically with a grey background and does not show the menu option to launch a mixer
It can also run as a standalon app or in any tray bar that accepts swallowed applications.
Any suggestions for extra parameters are welcome.
You can get the latest source from the puppy subversion repository
| Code: | | svn co http://svn2.cvsdude.com/puppylinux/puppy-miniapps/mini-volume/trunk |
Let me know if you are interested on adding functionality
Issues
It will only work appropriatelly in puppy109 and Puppy2.xx
Changelog:
2007-03-03 - 19:20
- Fixed balance calculation
2007-02-26 - 01:00
- Added a parameter to select a mixer application to launch on right click
- Added right click menu to select either "mute" or "mixer"
- Added code to respect balance selected in another mixer
- Cleaned up the code a little.
2007-01-14 - 18:56
-Fixed position of slider and hint when the tray is on the top
- Replaced image with images showing the volume level (High, medium, low, mute)
2006-06-16 - 01:01
At the request of Barry changed it to use setvol instead of snack.
Fixed flickering on mouse wheel actions.
2006-06-14 - 01:00
Added mouse wheel functionality to control the volume
Added to Subversion repository
| Description |
|

Download |
| Filename |
mini-volume-0.7.pet |
| Filesize |
6.37 KB |
| Downloaded |
1165 Time(s) |
| Description |
|
| Filesize |
2.86 KB |
| Viewed |
2847 Time(s) |

|
| Description |
|
| Filesize |
3.56 KB |
| Viewed |
2809 Time(s) |

|
_________________ http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
Last edited by rarsa on Sat 03 Mar 2007, 20:23; edited 17 times in total
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Sat 27 May 2006, 04:09 Post subject:
|
|
Excellent Mr Bond
Works in Puppy2a8
The install alien package is a bit different (easier in fact) in Puppy2
You want the first small icon that talks about installing tarballs . . .
Does the volume image need to be transparent?
then
| Code: | <Swallow name="mini-volume.tcl">
mini-volume.tcl -bg "#3A82F8"
</Swallow> |
would change from grey to my beloved deep blue of the XP JWM theme
I say woof woof - this needs to be in Puppy2 even though there is a feature freeze - I would suggest no volume control is a bug (yep gotta get that volume into Puppy2 . . .)
Well done rarsa
| Description |
|
| Filesize |
3.66 KB |
| Viewed |
3871 Time(s) |

|
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
Béèm

Joined: 16 Apr 2006 Posts: 513 Location: Brussels
|
Posted: Sat 27 May 2006, 05:06 Post subject:
|
|
Thanks It's great.
Another challenge would be to connect the volume buttons (+ -) on multi-media keyboards to the slider and make it move.
_________________ Puppy Linux 2.02 SMkey, KDE354mini, wine0.9.20, devx-qt-renamed.
Puppy Linux 2.10r1 SMkey, JWM, devx_qt_renamed_210, KDE355mini
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: Sat 27 May 2006, 05:23 Post subject:
|
|
Truly great!
It's getting to the point where jwm-config needs taskbar-applet management
added...
I wonder, maybe we should put all the taskbar applets in the same place, say
/usr/local/trayapps/, so the applet manager can find them easily and we wouldn't
have to have a fixed list.
|
|
Back to top
|
|
 |
Béèm

Joined: 16 Apr 2006 Posts: 513 Location: Brussels
|
Posted: Sat 27 May 2006, 05:31 Post subject:
|
|
Good idea, Barry.
I support.
_________________ Puppy Linux 2.02 SMkey, KDE354mini, wine0.9.20, devx-qt-renamed.
Puppy Linux 2.10r1 SMkey, JWM, devx_qt_renamed_210, KDE355mini
|
|
Back to top
|
|
 |
Rhino

Joined: 04 May 2005 Posts: 262 Location: Cincinnati, OH, USA
|
Posted: Sat 27 May 2006, 09:51 Post subject:
|
|
Absolutely fantastic! It works perfectly so far and is so simple and elegant. This is a "must have" utility for any puppy user. Great work.
_________________ Visit the Puppy Linux Video Tutorials @ http://rhinoweb.us
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: Sat 27 May 2006, 10:10 Post subject:
|
|
Okay, it's now in Puppy2! Only thing I changed was make the background of the
gif transparent.
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9844 Location: Arizona USA
|
Posted: Wed 31 May 2006, 19:14 Post subject:
|
|
Thanks, rarsa. I've really wanted one of those.
|
|
Back to top
|
|
 |
rarsa

Joined: 29 May 2005 Posts: 3053 Location: Kitchener, Ontario, Canada
|
Posted: Wed 14 Jun 2006, 00:58 Post subject:
|
|
I've uploded a new version that responds to the mouse wheel
I had it 99% ready since a couple of days before Puppy2 but didn't have enough time to finish it then.
Now I've also added it to the subversion repository
Check it out:
http://www.murga.org/~puppy/viewtopic.php?p=51724#51724
_________________ http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: Wed 14 Jun 2006, 01:19 Post subject:
|
|
rarsa,
in mini-volume.tcl, could you change this line:
| Code: | | exec wish8.4 "$0" "$@" |
to this:
| Code: | | exec wish "$0" "$@" |
reason is, i've upgraded puppy2 to tcl/tk 8.5.
but, both 8.4 and 8.5 unleashed pkgs has executable 'wish' which is a sym link
to the actual executable.
|
|
Back to top
|
|
 |
rarsa

Joined: 29 May 2005 Posts: 3053 Location: Kitchener, Ontario, Canada
|
Posted: Wed 14 Jun 2006, 01:24 Post subject:
|
|
| BarryK wrote: | | in mini-volume.tcl, could you change this line... | Done.
_________________ http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
|
|
Back to top
|
|
 |
rarsa

Joined: 29 May 2005 Posts: 3053 Location: Kitchener, Ontario, Canada
|
Posted: Fri 16 Jun 2006, 01:03 Post subject:
|
|
Version 0.3
At the request of Barry changed it to use setvol instead of snack.
Fixed flickering on mouse wheel actions.
You can find the pupget at the top of this thread http://www.murga.org/~puppy/viewtopic.php?p=51724#51724
_________________ http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
|
|
Back to top
|
|
 |
rarsa

Joined: 29 May 2005 Posts: 3053 Location: Kitchener, Ontario, Canada
|
Posted: Sun 14 Jan 2007, 20:30 Post subject:
|
|
Version 0.4
Download it from here:
http://www.murga-linux.com/puppy/viewtopic.php?p=51724#51724
Version 0.4 is not just a change of look with a nicer image. It also correctly displays the slider and hint when the tray at the top and changes the image according to the volume level. from Mute to High volume there are 4 different volume levels to display.
Changelog:
2007-01-14 - 18:56
- Fixed position of slider and hint when the tray is on the top
- Replaced image with images showing the volume level (High, medium, low, mute)
_________________ http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9844 Location: Arizona USA
|
Posted: Mon 15 Jan 2007, 10:06 Post subject:
|
|
rarsa, how do we install it? It extracted as a directory, "mini volume-0.4," which I put in /root/my-applications for now.
|
|
Back to top
|
|
 |
rarsa

Joined: 29 May 2005 Posts: 3053 Location: Kitchener, Ontario, Canada
|
Posted: Mon 15 Jan 2007, 10:39 Post subject:
|
|
It installs as a PupGet With the PupGet manager.
When you open the PupGet installer it is the second small button. It will let you choose a file to install.
_________________ http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
|
|
Back to top
|
|
 |
|