-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (3) .- Knowledge Base  . 

CaptureDeviceTray

   0.3  

KDE Sound Application

Score 56%
mallratmallrat
DSR, LLC
Home
-
Dmitry Kuzmenko 2

DSR, LLC
Russian Federation, Voronezh
Last visit Aug 30 2011
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--
CaptureDeviceTray
zoom


CaptureDeviceTray
zoom


Minimum required   PyKDE/PyQt
Downloads:  96
Submitted:  Feb 9 2011
Updated:  Mar 1 2011

Description:

System tray application that can be kicked by dbus and will switch CaptureDevice
to enabled or disabled state. The primary goals of this software is doing the
following:
-- Show microphone capturing state (uses alsa notifications)
-- Switch microphone capturing state by hotkey (only dbus messages are
supported)

This is my first simple application on Python. It was developed for Skype
meetings to be sure when microphone is enabled and when it isn't.

To use it you need PyQt4 and pyalsa installed using dbus is currently optional. If you can't find pyalsa in your package repository, try to install it via "easy_install pyalsa". easy_install is a part of setuptools (or python-distribute) package. When the
application is launched it puts microphone icon into the system tray. If capture
device is disabled, red crossing circle will be added. CaptureDeviceTray utility
uses pyalsa library (http://www.alsa-project.org) for checking status of alsa capturing device and receiving
notifications. So this utility can be used just to show your capturing device
state. Also you can change the state of selected device via dbus calls to the
CaptureDeviceTray.

Sample dbus calls to switch capture state:
-- Via CaptureDeviceTray utility
qdbus org.kde.capturedevice /CaptureDevice org.kde.CaptureDevice.SwitchState
-- Via kmix:
qdbus org.kde.kmix /Mixer0 org.kde.KMix.setRecordSource Capture:0 [True|False]
-- Via amixer command-line:
amixer sset Capture,0 capture [cap|nocap]

To set up capture device name in CaptureDeviceTray, place the device name to
CaptureDevice.conf. Only one device could be specified for now. To know your
name, open kmix and find the capture channel you need. I have two capture
channels: "Capture" and "Capture 2". To use "Capture" put the "Capture:0" line
into config to use the second one, use "Capture:1" etc. 'amixer scontrols'
output could be helpful

To use the CaptureDeviceTray unpack the archive somewhere you like. I'm using
~/programs/. Then start the application via krunner using full path. If you run
it via krunner it will be started again at login automatically. Then you could
use context menu to check does it work. Then try dbus commands listed above.

To bind hotkey for switch you can use Custom Shortcuts in KDE System Settings ->
Shortcuts and Guestures. To add new shortcut click Edit -> New -> Global
Shortcut -> DBus command. In trigger tab set your hotkey, in Action tab set the
following:
Remote application: org.kde.capturedevice
Remote object: /CaptureDevice
Function: org.kde.CaptureDevice.SwitchState
Arguments: leave this field empty
Try Call button to check.

Have a lot of fun!




Changelog:

0.1 - Initial revision.
0.2 - Don't require kmix. Listen ALSA notifications via pyalsa.
0.3 - Switch state on click action.




LicenseGPL
Source(CaptureDeviceTray)
Send to a friend
Subscribe
Other  Apps  from mallrat
Report inappropriate content



-
.

 Nice

 
 by Contrast on: Mar 26 2011
 
Score 50%
ContrastContrast
-
Mike Vaughn 37

United States of America, Georgetown, KY
Last visit Jul 19 2014
2 Friends
1 Groups

More info
Send a message
Add as friend
Other contents
--

Cool idea; I can't count the times I was having mic issues where this would have come in handy. Do you know how well it interacts with PulseAudio?
I can't help but wonder though, wouldn't something like this be better implemented as a Plasma widget? Given you made it dependent on KDE, it just seems logical. :)


Reply to this

Add commentBack






-
-
Do you like or dislike Ubuntu Unity?
 Yes, unity is alien technology!
 It is less confusing than Gnome 3 default, shell.
 Granny thinks it is much more usable than Gnome 2
 Canonical is embarrasing itself with this split project
 Gnome 3 default shell is much better
 I dislike Unity, Gnome 3 default shell is alien technology!
 None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.