ALSA Volume Control plasmoid

Plasma 4 Extensions

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

6
Become a Fan
8.2

Description:
Plasmoid controls alsa devices by mouse. You can add plasmoid to panel (both vertical && horisontal) or to workspace.
You must install python-alsaaudio or similar in your distributive.
Last changelog:

v.0.25
* fixed audiodevice detecting error;
* added detecting multiple audiodevices in system;
* added color managment of font and panel sliders with support opacity;
* added device rescan without restart plasmoid;
* added plasmatooltip with representation
device volume in panel;

v.0.27
* added Rescan button to Panel Devices Settings;
* added color control for slider handlers;

v.0.28
* fixed cardindex detection;

v.0.30
* improved stop control of tracking thread;
* added detect system color of text for first start;

v.0.35
* changed method of thread complete;

v.036
* text is replaced by icons in Common Device Panel;

v.0.37
* fixed warning in import module errors;

v.0.41.2 :
* added restore of device volume;
* added retrieve restored volume parameters;
* fixed slider`s mouseRelease & doubleClick events for common events;
* fixed the freez at plasmoid's init;
* some fixes & improvements;

v.0.42.2 :
* some fixes & improvements;

v.0.42.3 :
* fixed initiate;
* improve initiate;

v.0.43.5 :
* fixed the applet init at case without available audio devices;
* some fixes && improvements;

v.0.50.0 :
* fixed changing a color of horizontal slider's handler;
* refactoring;
* added slider's size Settings;
* added displaying a changes of slider's color & size into Settings;

v.0.51.0 :
* added sensitivity for sliders;

v.0.51.1 :
* reimplemented the retrieve of restored volume parameters;
* some fixes for disconnect SLOTs at close;

v.0.51.2 :
* added the restriction of notification;
* reimplemented tooltip;


Ratings & Comments

62 Comments

nick87720z_double

Honestly, this is the first and only one applet, flooding desktop notifications each time when its panel hides. It would be nice to show at least only first time. Or complement notification with action "Don't tell anymore" to allow user disable it manually. IMHO, such widget is must have for those, actively working with multimedia/pro-audio stuff. Yet it would be nice to support scrolling to change preselected channel, like all known applets do.

F1ash

Okay, I'll do your first request, but, as for the second, it is already implemented. You can specify in the settings which channels display into panel and manage scrolling without causing permanently Common device panel. Actually I did not make restrictions notification because this panel is very rarely invoked. http://img.flashtux.org/img133512b193efxefa8dd95.png

nick87720z_double

Yeah, i completely forgot about that. I had disabled all sliders, because there is another bug: they didn't affect applet size on panel. Hm, just noticed it fixed, thanks :)

nick87720z_double

But tooltip still needs to be fixed. I have intel hda, and there are ≈8 channels. When i enable sliders for all, only 3 or 4 are visible. It just ignores some of them., including even Capture slider. Last time i tried again to enable all, they all where visible on tooltip.

nick87720z_double

Got it again (about tooltip but). One issue: value in last line is unaligned with other values.

F1ash

Tooltip reimplemented. I did not understand: all your devices are detected now or not?

nick87720z_double

Sorry for long delay. I restarted plasma-desktop by killall -6. Notifications still appear, for tooltip i have all but one last value visible. New problem: sliders on panel's widget change to previous value after attempt to change. But in dialog it doesn't happen. And tooltip: when i begin to change value from panel widget, missing value for last slider appears, but when changed value jumps back, appeared value disappears from tooltip again.

nick87720z_double

Hm, it jumps back if changed by dragging. But with scrolling it is OK.

F1ash

Plasmoid behavior is that: if make-clicking in the widget, that it restored to the saved state. This state is set only when you call the Common device panel. Just when initiating plasmoid restores the saved state, but not the last state. Unfortunately, tooltip shows only those devices that have already been initiated. That is, until the new device will not change the value, it is not displayed in the tooltip.

Henri

The handle color settings works now and size settings with previews are very useful. One suggestion for future improvement: it's good to be able to point the slide/icon and adjust the volume by mouse wheel but the increment is rather big (10%). Would be nice if one could set the value in settings. Nonetheless, this is very neat plasmoid!

Henri

When I first tried to change the color of the handle, it didn't change it but when I tried to change the volume Plasma crashed. This happened every time until I removed and added the plasmoid again. Now it won't crash but handle color still won't change. Changing color of other elements work. Using KDE 4.11.1. Would be very useful if there was an option for bigger size handle. Now with my "42 TV screen it's hard to see and hit that with mouse cursor.

F1ash

I'll look into it as soon as time. Thank you

F1ash

Try new version ;)

david96

Thank you, it works by installing python-alsaaudio.

bjerke

Error: No module named alsaaudio. Install necessary packet. I had to install the python-alsaaudio packet

F1ash

This means that you need to find a Debian package, which supports module for python alsaaudio.

rinaldus

Great plasmoid! I put it on panel near system tray and can change volume without opening KMix and it's great! But it's a pity that it's impossible to change size of this plasmoid. I can change size of it when I put it to desktop, but it is small in panel mode. Can you add this function in plasmoid settings please?

F1ash

Plasmoid designed to change its size with the change in the height/width of the panel. For vertical panel need to change the orientation of the plasmoid in the Settings. Maybe I do not quite understand you correctly.

elkooder

Awesome man! its really useful for me Thanks

kent57

Tried the update but no success. Tried bartman2589 repackaging idea & it worked. However the "on Icon" selection in the set-up gives a window that shows all outputs but can't close the window because it covers the icon that closes it.

F1ash

I can not reproduce this problem on my Kubuntu. In this case, use Esc, please.

kent57

Thanks F1ash escape works fine. I think the problem is related to the fact I have dual monitors & I placed the widget too close to the upper left hand corner of the right hand monitor. Great plasmoid solved a lot of issues I've been having with pulseaudio & alsamixer.

kent57

Thanks F1ash escape works fine. I think the problem is related to the fact I have dual monitors & I placed the widget too close to the upper left hand corner of the right hand monitor. Great plasmoid solved a lot of issues I've been having with pulseaudio & alsamixer.

kent57

After installing as per instructions, any use of plasmoid crashes plasma-desktop. Configuring plasmoid crashes desktop and even closing plasmoid crashes desktop. Have followed all discussions above with no success. Any suggestions?

F1ash

I need the output of plasmoidviewer to the console. Crash usually occur from a premature call to the tracking thread, although the script does not suggest such a possibility.

Pling
0 Affiliates
Details
license
version 0.51.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 2

More Plasma 4 Extensions from F1ash:

kde-plasma-mail-checker
F1ash
last update date: 11 years ago

Score 7.6

Simple Alarm Clock
F1ash
last update date: 12 years ago

Score 6.1

plasmaCpuFreqUtility
F1ash
last update date: 13 years ago

Score 7.7

Simple Spacer plasmiod
F1ash
last update date: 14 years ago

Score 7.1

Other Plasma 4 Extensions:

Icon Tasks deb build
N00bun2
last update date: 13 years ago

Score 4.3

Prayer Times Plasmoid
riyad
last update date: 12 years ago

Score 5.2

KPrayertime4 Islamic Prayer Times
ahaq
last update date: 15 years ago

Score 4.4

Hostinfo
mgraesslin
last update date: 13 years ago

Score 4.7

Monitor QuadCore Russian
kuchumovn
last update date: 16 years ago

Score 5.0

blaKjaK
werevire
last update date: 15 years ago

Score 5.0