Tiny Core Extensions > TCE Tips & Tricks

nifty volume control for jwm

<< < (3/10) > >>

jpeters:
Very nice!!    At first I missed the delimiter  (.) (dirty, high resolution screen)....
Thanks.    Keep 'em coming!     

Onyarian:
Great, mikshaw!

Your code works perfectly and is much more polished than mine, I'm just an apprentice.

I replaced step=5 with step=1 to have 25 sound levels.  :D

tobiaus:
on the matter of making this an extension, mikshaw, i wonder if the following is possible: 1. a simple method of making this work using either ossmix, or something also-oss compatible (for skype users) or rexima... possibly it could detect rexima, then look for the also-oss compatible option, then choose ossmix if it does not find the others. the findings could then export to a variable or .rc file to keep the detection from slowing down the script? (my version of it is very fast.)

i mention this because i think your version is probably flexible enough to be used across three controls, this is a guess. then if this is possible, the other question would be your opinion on the best way to add two lines to the middle of .jwmrc-tray. i can write a script to do that, but it would be uglier than the script i started this thread with, plus i wouldn't dare writing an extension that touched part of .jwmrc's config... not when i've received such strong feedback about how thinking out loud on the forum might destroy .wbar's.

curaga:
Oops, sorry guys, the man pages online had already been updated to 4.1 :p
Relative levels will work when the OSS extension gets updated.

mikshaw:
tobiaus: It could be modified easily enough to work for multiple mixers, but I don't know if that's ideal.  I assume it doesn't even work with the version of ossmix that you use, which would be a reasonable thing to expect.

The output of various commands tends to be unique with the possible exception of application clones or forks, and this script relies on a specific output format.  Adding code for other mixers is likely to make that single script larger than the combined size of multiple single-mixer scripts, and use more resources than a single-mixer script.

I'm not saying it wouldn't work, but I'm not sure it would work well enough to be worthwhile.  wwwoowwwoooooo

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version