LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-24-2006, 11:17 PM   #1
Sammael
Member
 
Registered: Jun 2006
Location: Slovakia, currently working in Liverpool UK
Distribution: Gentoo 2006.0
Posts: 97

Rep: Reputation: 15
multimedia keyboard buttons on linux???


hi!

while i was still running also windoze i bought a wireless keyboard&mouse combo...everything runs smooth under my distro, EXCEPT the multimedia buttons on the keyboard(prev,play/pause,stop,next,vol up, vol down etc...)

under windoze i had the usual "bad translated made in whoknowswhere" system tray icon which let me configure the buttons (more or less, in fact less than more )

so i was wondering is something like this available for most advanced operating system on the world?

thx
 
Old 06-25-2006, 12:07 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Hello Sammael!

There are some tools(key grabbers) that may help you. I personally use xbindkeys:

http://hocwp.free.fr/xbindkeys/xbindkeys.html

Quote:
xbindkeys is a program that allows you to launch shell commands with your keyboard or your mouse under X Window. It links commands to keys or mouse buttons, using a configuration file. It's independant of the window manager and can capture all keyboard keys (ex: Power, Wake...).
If you prefer to configure xbindkeys with a GUI, install also xbindkeys-config. I have a Microsoft Natural Multimedia Keyboard and almost all my keys worked out of the box with Ubuntu Dapper. I just use xbindkeys for custom keyboard shortcuts, but it may help you to "grab" your multimedia keys and assign them a given task.

Good luck!
 
Old 06-25-2006, 08:03 AM   #3
Sammael
Member
 
Registered: Jun 2006
Location: Slovakia, currently working in Liverpool UK
Distribution: Gentoo 2006.0
Posts: 97

Original Poster
Rep: Reputation: 15
Question

i downloaded and installed xbindkeys all right...but -

Quote:
Originally Posted by Mega Man X
If you prefer to configure xbindkeys with a GUI, install also xbindkeys-config.
yes, i would very much like to use a GUI, but when i'm compiling it i get this:

gcc -O3 -Wall `gtk-config --cflags` -D_GNU_SOURCE -c xbindkeys_config.c
/bin/sh: gtk-config: command not found
xbindkeys_config.c:18:21: error: gtk/gtk.h: No such file or directory
In file included from xbindkeys_config.c:22:
menu.h:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
In file included from xbindkeys_config.c:23:
middle.h:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
middle.h:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
middle.h:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
middle.h:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
middle.h:33: error: expected ')' before 'state'
middle.h:36: error: expected ')' before '*' token
In file included from xbindkeys_config.c:25:
speedc.h:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
xbindkeys_config.c: In function 'main':
xbindkeys_config.c:29: error: 'GtkWidget' undeclared (first use in this function)
xbindkeys_config.c:29: error: (Each undeclared identifier is reported only once
xbindkeys_config.c:29: error: for each function it appears in.)
xbindkeys_config.c:29: error: 'window' undeclared (first use in this function)
xbindkeys_config.c:30: error: 'menu' undeclared (first use in this function)
xbindkeys_config.c:31: error: 'middle' undeclared (first use in this function)
xbindkeys_config.c:32: error: 'vbox' undeclared (first use in this function)
xbindkeys_config.c:33: error: 'hbox' undeclared (first use in this function)
xbindkeys_config.c:34: error: 'GtkAccelGroup' undeclared (first use in this function)
xbindkeys_config.c:34: error: 'accel_group' undeclared (first use in this function)
xbindkeys_config.c:37: error: 'gboolean' undeclared (first use in this function)
xbindkeys_config.c:37: error: expected ';' before 'show'
xbindkeys_config.c:52: error: 'show' undeclared (first use in this function)
xbindkeys_config.c:52: error: 'TRUE' undeclared (first use in this function)
xbindkeys_config.c:60: warning: implicit declaration of function 'gtk_init'
xbindkeys_config.c:63: warning: implicit declaration of function 'gtk_window_new'
xbindkeys_config.c:63: error: 'GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
xbindkeys_config.c:64: warning: implicit declaration of function 'gtk_window_set_title'
xbindkeys_config.c:64: warning: implicit declaration of function 'GTK_WINDOW'
xbindkeys_config.c:66: warning: implicit declaration of function 'gtk_signal_connect'
xbindkeys_config.c:66: warning: implicit declaration of function 'GTK_OBJECT'
xbindkeys_config.c:67: error: 'GtkSignalFunc' undeclared (first use in this function)
xbindkeys_config.c:67: error: expected ')' before 'main_exit'
xbindkeys_config.c:69: error: expected ')' before 'main_exit'
xbindkeys_config.c:71: warning: implicit declaration of function 'gtk_hbox_new'
xbindkeys_config.c:71: error: 'FALSE' undeclared (first use in this function)
xbindkeys_config.c:72: warning: implicit declaration of function 'gtk_container_add'
xbindkeys_config.c:72: warning: implicit declaration of function 'GTK_CONTAINER'
xbindkeys_config.c:74: warning: implicit declaration of function 'xbindkeys_config_middle_list'
xbindkeys_config.c:77: warning: implicit declaration of function 'xbindkeys_config_speed_config'
xbindkeys_config.c:81: warning: implicit declaration of function 'selectable_clist'
xbindkeys_config.c:88: error: expected ')' before 'main_exit'
xbindkeys_config.c:90: error: expected ')' before 'main_exit'
xbindkeys_config.c:92: warning: implicit declaration of function 'gtk_vbox_new'
xbindkeys_config.c:95: warning: implicit declaration of function 'gtk_accel_group_new'
xbindkeys_config.c:96: warning: implicit declaration of function 'xbindkeys_config_menu'
xbindkeys_config.c:97: warning: implicit declaration of function 'gtk_box_pack_start'
xbindkeys_config.c:97: warning: implicit declaration of function 'GTK_BOX'
xbindkeys_config.c:98: warning: implicit declaration of function 'gtk_accel_group_attach'
xbindkeys_config.c:100: warning: implicit declaration of function 'xbindkeys_config_middle'
xbindkeys_config.c:105: warning: implicit declaration of function 'gtk_widget_show_all'
xbindkeys_config.c:106: warning: implicit declaration of function 'gtk_main'
make: *** [xbindkeys_config.o] Error 1

it seems i need the gtk-config, but how do i install it? i have installed gtk, gtk+2.0 and all devel packages, but still get this error.

*EDIT*
after some googlin' i found this:
Quote:
You might also need libglib1.2-dev and libgtk1.2-dev to get the updated gtk-config script.
...but i checked, i have them installed too...
*EDIT*

is there anything i can do to install the gui? i have absolutely no idea what to write to .xbinkeysrc to make my buttons work...

thx for your time...

Last edited by Sammael; 06-25-2006 at 08:19 AM.
 
Old 06-25-2006, 12:48 PM   #4
Sammael
Member
 
Registered: Jun 2006
Location: Slovakia, currently working in Liverpool UK
Distribution: Gentoo 2006.0
Posts: 97

Original Poster
Rep: Reputation: 15
hey, i solved it! i found excellent utility called sven (http://sven.linux.kiev.ua). it compiled without error and has a great gui...i can only recommend it for any noob as well as experienced user...
 
Old 06-25-2006, 09:00 PM   #5
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Rep: Reputation: 30
I always liked the itouch plugin for XMMS. Bad thing about it I guess is that you gotta leave XMMS running all the time for it to work. It was designed for the logitech itouch keyboards, but it works with anything (like my HP laptop's media keys, etc). Allows you to bind the keyboard volume and mute keys right into XMMS's volume control, as well as other random keys. I like to make my "windows key" bring up a linux terminal :P
 
Old 06-26-2006, 01:00 AM   #6
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Ah! Thanks for the replies guys. I never heard of sven or itouch plugin, but that's the cool thing with Linux: Learning something new everyday ^^

Cheers!
 
  


Reply

Tags
xbindkeys



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
X Linux and Multimedia keyboard: Help zamboni Linux - Hardware 4 03-27-2006 07:59 AM
multimedia buttons v1pEr Linux - Laptop and Netbook 5 03-10-2005 11:24 AM
Program for keybinding of Multimedia buttons on keyboard alitrix Linux - Software 24 10-17-2004 07:23 PM
HI, I have a problem with the multimedia buttons in my keyboard... SpOmA Linux - Hardware 10 09-21-2004 07:05 PM
Multimedia keyboard on a linux box pe2338 Linux - General 3 08-13-2003 06:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration