Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Oct 2014, 18:56
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Tray Volume selector - Updated Mar 2007!
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [42 Posts]   Goto page: 1, 2, 3 Next
Author Message
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: 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
mini-volume-0.7.pet
Description 
pet

 Download 
Filename  mini-volume-0.7.pet 
Filesize  6.37 KB 
Downloaded  1311 Time(s) 
volumeopen.png
 Description   
 Filesize   2.86 KB
 Viewed   3196 Time(s)

volumeopen.png

volumeclosed.png
 Description   
 Filesize   3.56 KB
 Viewed   3073 Time(s)

volumeclosed.png


_________________
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
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 27 May 2006, 04:09    Post subject:  

Excellent Mr Bond Smile

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
Smile
vol.jpg
 Description   
 Filesize   3.66 KB
 Viewed   4147 Time(s)

vol.jpg


_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Bm


Joined: 16 Apr 2006
Posts: 513
Location: Brussels

PostPosted: 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
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: 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
View user's profile Send private message Visit poster's website 
Bm


Joined: 16 Apr 2006
Posts: 513
Location: Brussels

PostPosted: 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
View user's profile Send private message 
Rhino


Joined: 04 May 2005
Posts: 262
Location: Cincinnati, OH, USA

PostPosted: 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. Cool
_________________
Visit the Puppy Linux Video Tutorials @ http://rhinoweb.us
Back to top
View user's profile Send private message Yahoo Messenger 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: 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
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11117
Location: Arizona USA

PostPosted: Wed 31 May 2006, 19:14    Post subject:  

Thanks, rarsa. I've really wanted one of those. Smile
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: 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
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: 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
View user's profile Send private message Visit poster's website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: 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
View user's profile Send private message Visit poster's website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: 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
View user's profile Send private message Visit poster's website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: 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
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11117
Location: Arizona USA

PostPosted: 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
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: 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
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 3 [42 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0848s ][ Queries: 13 (0.0095s) ][ GZIP on ]