Tiny Core Extensions > TCE Tips & Tricks
nifty volume control for jwm
curaga:
Source will be posted when I consider this ready :)
Yes, it uses the freedesktop-compliant dock of Jwm. The spec is here:
http://standards.freedesktop.org/systemtray-spec/systemtray-spec-latest.html
Menu entries - what do you mean? Soundon could also be started as an extension install script, but the menu entry would still be nice if one disables sound and wants to re-enable.
Edit: you can start two instances if you need one to control the mic vol. Not as clean as a right-click to change channels, but it works.
mikshaw:
Volume controls within applications are often inconvenient. I like to have a fairly even volume level from one application to the next, and using an application's volume control can end up making more work. For example, xmms volume control changes the system volume rather than the volume for the application. If i then load an app that has a lower volume I have to manually turn it up. It ends up being similar to the crappy levels you experience with television...when the commercials come on you often have to turn down the volume because they're recorded at higher levels than the shows.
A few applications don't allow me to use my centralized volume via hotkey, though. For example, UT (and I suspect a great many other games, though I don't have the experience to say for sure) prevents me from using my window manager's hotkeys, so if it's too loud or quiet I'm forced to do a number of clicks to access the in-game volume control. That's annoying, so instead I start the game with a wrapper that sets the system volume to a compatible level before starting the game, and it works out fine.
jpeters:
--- Quote from: curaga on February 21, 2009, 05:54:03 PM ---Source will be posted when I consider this ready :)
Yes, it uses the freedesktop-compliant dock of Jwm. The spec is here:
http://standards.freedesktop.org/systemtray-spec/systemtray-spec-latest.html
--- End quote ---
The specs look like visual c++ stuff. I'll await your code to see how it works with jwm.
--- Quote ---Menu entries - what do you mean? Soundon could also be started as an extension install script, but the menu entry would still be nice if one disables sound and wants to re-enable.
--- End quote ---
I was thinking having to turn the sound on unusual, and with the icon it's simple to mute. Maybe there's some other reason needing to turn it on and off from the menu? I load OSS (soundon) with my skype script on boot and leave it on.
edit. a drop down mixer might be a consideration also, instead of just volume.
mikshaw:
Not that it matters, but I like to hear myself type.....
I'm not sure why turning OSS on and off is a desired feature, apart from the possibility that it crashes, which I've never seen in any distro I've ever used.
Personally I put this in bootlocal.sh, and it suits me just fine:
--- Code: ---if [ -x /usr/sbin/soundon ]; then
/usr/sbin/soundon
fi
--- End code ---
curaga:
So guys, with improvements the 0.5 version is ready.
There is one bug I know of - the first click might open the volume slider under a window. I'm starting to think this is a Jwm bug, since I'm sure I ask to be above correctly, and all tries after the first come up above windows right like they should. This means it's ready on my part; source shall be posted :p (source? you can't handle the source!)
Improvements from previous version:
- True options parsing
- Transparent background for the volume slider window
- Tooltip shows current level
- Right-click menu
- Multiple sound cards support
TC binary:
http://www.ziddu.com/download/3603351/tc-mixer.gz.html
Sources:
http://www.ziddu.com/download/3603304/tc-mixer-0.5.tgz.html
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version