
Source (link to git-repo or to original if based on someone elses unmodified work):
mkc or mediakeyboardcontrol (previously known as mediaplayer controller) is now a project running via sourceforge http://sourceforge.net/projects/mkc/ .
Because I use several mediaplayer sometimes even at the same time and have a multimedia keyboard I missed the functionaly that I could directly control a mediaplayer even if it isn't selected, With one specific keybinding set (so no diverent keybindings for every mediaplayer) . So I created a mediacontrol program which can control mediaplayers which have an DCOP interface. The extra beauty of the program is that you don't by definition need multimedia keyboard, just bind some keycombo in kde with a dcop call to the mediacontrol service.
I recently started using mkc as a replacement for KMilo, so no more ugly KMilo osd and it's better configurable
If you have any wishes for the program just let me know.
--- what is new ---
- rewriten code
- new dcop functions
- other configfile
--- what programs can be controlled ---
the program can now control the following mediaplayers:
1. kaffeine
2. juk
3. amarok
4. noatun
5. kscd
mixer: kmix
other mediaplayers should also be possible to add if they have a dcop interface.
install howto:
just read the readme file should contain al the information needed
due to a packaging problem the mkcrc and readme are at the base of the archive.
### 01-07-2006 0.533 ###
bug in isPlaying function fixed
### 10-06-2006 0.532 ###
I have no idea what I changed :S
### 08-06-2006 0.531 ###
bug in mixer toggle fixed
### 08-06-2006 0.53 ###
I rewrote the mixer volume control now it doesn't have to wait for a second before displayig the real volume
### 12-05-2006 config update ###
- the config has been changed a bit, making it possible to adress more player functionality
### 20-03-2006 total code rewrite ###
- I have rewriten the whole code, making it faster then before.
- Added new dcopfunctions.
- new type of config file
### 23-12-2005 no change ###
My servers harddisk crashed :S so that the package was unavailable.
If there are any bugs tell me about it and I will fix them asap.
### 15-09-2005 config update ###
added a couple of mediaplayers to the config file
### 29-08-2005 bug fixes ###
forgot to add the up to date config file. because of that the OSD was black.
### 27-08-2005 bug fixes ###
fixed zome bugs. Including a compile error.
### 13-06-2005 OSD added ###
I have added an OSD to the app
### 13-06-2005 bug fixed ###
program crashed when mixer was not running and action towards mixer was made
Ratings & Comments
31 Comments
Makefile.am: required file `./INSTALL' not found Makefile.am: required file `./NEWS' not found Makefile.am: required file `./README' not found Makefile.am: required file `./COPYING' not found Makefile.am: required file `./AUTHORS' not found make: *** [Makefile.in] Error 1
When compiling mkc 0.5 on an updated Debian sid with GCC 4.0 I got this error: osdwidget.h:38: error: default argument missing for parameter 2 of ‘osdwidget::osdwidget(const char*, configmanager*)’ main.cpp: In function ‘int main(int, char**)’: main.cpp:43: warning: unused variable ‘service’
Should be fixed now. If now just let me know and I will look at it
Thanks, it compiled now!
This can already be done with lineak. As long as the KDE program has a dcop interface, amaroK for instance.
lineak is only a mapping to a specific player not a bundle of players at the same time.
so contribute it to lineak, don't reinvent the wheel.
The thing is I don't want to incorporate into a tool that is specificly for keyboard. In my home situation I also use the DCOP interfaces for the use with lirc, and A flatmate of mine wants to use it to show player information on het keyboard lcd display. Looking at the way linux is build up, and the different ways people use their pcs, I belive this is more versityle solution.
Does it work with a wired logitech itouch?
use "xev" to find your keycodes: open konsole, type xev, and press your multimedia buttons. look for "keycode". example: when you press "play" you probably get keycode 162 then edit the file "xmodmap.conf". it should be in your home directory (if not, google for it): if keycode 162 was your "play" button, then you would type "keycode 162 = XF86AudioPlay XF86AudioPause" and so on. i can send you my xmodmap.conf if you want. i have a wired logitech itouch navigator keyboard.
I use Xorg. I don't have that file. Anyway, here's the output from xev: User: 223 E-mail: 236 IM/SMS: Nothing happened Webcam: Nothing happened Mute: 160 Volume up: 176 Volume down: 174 Media: 237 home: 178 Search: 229 Does anyone know how to use this information in Xorg?
to get your keyboard working try this link http://dwangbuis.student.utwente.nl/wiki/index.php/Extra_keys_on_keyboard I had problem with my newly installed ubuntu by doing this I got it working
here's the guide that i used: http://wiki.linuxquestions.org/wiki/Configuring_keyboards it's very easy to understand. btw, if you want to configure ALL your mouse buttons as well, check this out: http://www.linux-gamers.net/modules/wiwimod/index.php?page=HOWTO+Mouse+Buttons&back=HOWTO+INDEX+Hardware have fun!
why KDE is not able to recognize the multimedia and extended keys until now?!
If X is configured right the keys are usable, but by default only the volume and mute then works in kde, the other keys aren't bound to anything. If you can't get you're keyboard to work try googleling for it or use xmodmap to create a keyboard mapping for your keyboard.
don't working on my "Labtec wd edge" (((
are you're multimedia keys in a keyboard map?? try using xmodmap. If the keys are in the map binding them to the program can be done via your control center and the regional & accessibility and then khotkeys
It took me some effort to make my new Ubuntu to build cpp (needed a whole load of dev packages and g++ and other packagers... but oh well that's life) And now with the new features MediaControl is even better! Thanks for the update on the configfile I was having trouble with the OSD being over my Amarok OSD, now they are perfectly alligned :)
i've just downloaded mediacontrol and i'm trying to make it, but i have a trouble: make[2]: *** No rule to make target `OSDWidget.h', needed by `OSDWidget.moc.cpp'. Stop. make[2]: Leaving directory `/home/bags/tandeta/mediacontrol/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/bags/tandeta/mediacontrol' make: *** [all] Error 2 what should i do?
I have seen the error before, but a room mate of mine fixed it, he will be back after the weekend I will ask him then what he did. I will try to look up to commands he did, maybe it's still there I thought the problem lies within the absence of some header files that should be on the system but I'm not sure. Will give you more info asap.
I think I found the error edit you makefile and change OSDWidget to osdwidget, will try to find out why this has happenned
new package which should fix this and some other bugs are now available
yeah, it has been made. thank you.
But we can improve the default KDE's mediacontrol applet to support other players like xmms, mplayer, xine, etc.! we need to file a wishlist! Anyways good work, but invisible ;)
support for xine, xmms and other non dcop service mediaplayers is still on my wish list, and should be do able if I know how to do good readout of either the proc filesystem or if I could get the information from kde it self. I have been thinking of making an applet as extra front end, but there are a couple of things that I have to make do/know before I can do that. 1. A new range of functions needs to be implemented, like getpossitioninfile(), and getTitleOfSong(). 2. would it be better to make a applet or an karamba theme?